Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:58

Adding Search Box problem


Poster: Alan
Dated: Thursday August 3 2006 - 4:35:31 BST

Hi,
I'm upgrading my old html menu with the new Milonic DHTML v5.
I't already looking much better but I am having extreme difficulty adding the search box.

I currently have a working html search an I'd like to incorporate that into the new menu.
Whenever I try and incorporate the code my menu disappears.

Any help would be greatly appreciated!!

Here is the code:


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="Verd_11pt_Regular" valign="top">
<form name="photosearch" method="post" action="http://www.mystore.com/Merchant2/merchant.mv?">
<div align="right">
<input type="hidden" name="Store_Code" value="CALB"\>
<input type="hidden" name="Screen" value="SRCHM">
<input type="hidden" name="Search_desc" value="1">
<input type="hidden" name="Search_name" value="1">
<input type="hidden" name="BrokSearch_Have_List_Fields" value="1">
<input type="submit" name="Submit" value="Search" class="SearchButton">
&nbsp;
<input type="text" name="Search_search" size="30" value="" class="SearchField">
<br>
<input type="radio" name="CategoryRestrict" value="Clips" checked>
Motions.
<input type="radio" name="CategoryRestrict" value="Photography">
Photography. <img src="graphics/00000001/shim_20x01.gif" width="20" height="1">
</div>
</form>
<div align="right"><img src="graphics/00000001/shim_01x10.gif" width="1" height="10"><img src="graphics/00000001/shim_01x10.gif" width="1" height="10"></div>
</td>
</tr>
<tr>
<td class="Verd_11pt_Regular"><img src="graphics/00000001/shim_01x01.gif" width="1" height="1"></td>
</tr>
</table>


Poster: Ruth
Dated: Thursday August 3 2006 - 20:19:31 BST

Hi,

I haven't done much with forms and tables, but you need to get all the " out and replace them with '

Next, the menu_data.js file isn't going to read your css as to the classes you have set in the table. You can use classes but you'd need to do it with the onclass/offclass parameters of the menu.

You also need to set that aI string where you are putting that search form to type=form;

Here's an example of a table form in an aI string, maybe you can figure how to do yours from this

Code:
aI("text=<form name=blinds onSubmit=\"return change_filter(this)\"><table border=0 width=150><tr><td>Bands</td><td><select name=bands><option>2<option>4<option>6<option>8<option>12<option>20<option selected>50</select></td></tr><tr><td>Direction</td><td><select name=direction><option>'Up'<option>'Down'<option>'Left'<option>'Right'</select></td></tr><tr><td>Duration</td><td><select name=duration><option>0.1<option>0.2<option>0.3<option>0.4<option>0.5<option>0.6<option selected>0.7<option>1.0<option>1.5</select></td></tr><tr><td height=40 colspan=2 valign=bottom align=center><input type=\"submit\" value=\"Activate\" class=\"formButton\"></td></tr></table></form>;type=form;");


You'll notice that anyplace there are " marks there are also \ for example input type=\"submit\"

Also, there is a post by John about search forms in the menu that might help.

http://www.milonic.com/forum/viewtopic.php?t=3867

Hope this helps.

Ruth