Board Logo

Inserting a form in the menu
Bewildered - 5/28/2008 at 12:26 AM

I would like to insert a one-field search form to the right of the Tirga Gold menu. I find that in menu.dom.js, if I insert a table cell with the number 33 in it, the 33 displays properly. Specifically, I change this...

['<table cellpadding="',TMD[0],'" cellspacing="',TMD[1],'" border="',TMD[2],'" class="',TM1B.TM08('table'),this.TMi>-1?'"onmouseout="menus[''+this.TM1O.id+''].exec(''+this.id+'',1)" onmouseover="menus[''+this.TM1O.id+''].exec(''+this.id+'',2)':'','"><tr>',this.TM1l.join(''),</tr></table>']

...to this (the change is near the end)...

['<table cellpadding="',TMD[0],'" cellspacing="',TMD[1],'" border="',TMD[2],'" class="',TM1B.TM08('table'),this.TMi>-1?'"onmouseout="menus[''+this.TM1O.id+''].exec(''+this.id+'',1)" onmouseover="menus[''+this.TM1O.id+''].exec(''+this.id+'',2)':'','"><tr>',this.TM1l.join(''),'<td>33</td></tr></table>']

So far, so good. However, if I then replace the number 33 with an HTML form, the menu disappears - even if I escape every quote mark in the HTML code with with " .

So how can I put a one-field search form to the right of the menu buttons in the Tigra Gold Menu?

Thank you.


tigra - 5/28/2008 at 03:32 PM

the form inside the menu item will not work regardless of the described problem. the menu makes sure that the whole area of the menu item is responsive to the mouse events by covering it with the transparent image. this will block any mouse events (such as focus on input box) from reaching your form elements.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/