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:13

Search box embedded into menu


Poster: reggsenterprises
Dated: Tuesday February 21 2006 - 13:15:35 GMT

Is there a way to embedd a search bar into the menu where you would click on the menu "search" option and the search bar would pop onto the screen where you could enter what you want to search for? This would replace using valuable space on the site page for the search bar.

I would assume it's a matter of entering the code for the search bar into the menu option but I'm sure there's additional code to make this work.


Poster: John
Dated: Tuesday February 21 2006 - 14:03:10 GMT

Here's a simple form I did to subscribe to my newsletter...
Code:
aI("text=Our Newsletter...<br><form action=http://pdaoutlet.biz/cgi-bin/mail.cgi><input type=hidden name=flavor value=subscribe><input type=hidden name=list value=pda><input type=text name=email><br><br><input type=submit value=Subscribe></form>;type=form;align=center;");

Here's the one Milonic has on their home page...
Code:
   aI("text=`<FORM METHOD=GET ACTION=/search.php name=search style='margin:0px;'><table><tr><td class=backW>Search Milonic</td></tr><tr><td class=backW><input name=q size=11></td></tr><tr><td><input type=submit value=Search></td></tr></table></form>`;type=form;align=center;onbgcolor=;onborder=;");


Poster: reggsenterprises
Dated: Wednesday February 22 2006 - 13:39:32 GMT

Not knowing html as well as I should, can anyone take the code below and incorporate it into the Milonic search that John shows above or tell me where I can go to find out how? Thanks.
The code for my search is:

<FORM ACTION="http://search.freefind.com/find.html" METHOD="GET" target="_self">
<FONT size=1 face="arial,helvetica" >
<INPUT TYPE="HIDDEN" NAME="id" VALUE="9999999">
<INPUT TYPE="HIDDEN" NAME="pageid" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">
<INPUT TYPE="TEXT" NAME="query" SIZE="15"><small>
<INPUT TYPE="SUBMIT" VALUE=" Find "><br>
</small>powered by <A HREF="http://www.freefind.com">
FreeFind</A></font></FORM>


Poster: John
Dated: Wednesday February 22 2006 - 13:51:56 GMT

Knowing HTML doesn't matter in this case (i.e., samples provided). Remove all quotes, shove it all together, add the type=form;, and stuff it all into an aI statement...
Code:
aI("text=<form action=http://search.freefind.com/find.html method=get target=_self><font size=1 face=arial,helvetica><input type=hidden name=id value=9999999><input type=hidden name=pageid value=r><input type=hidden name=mode value=all><input type=hidden name=n value=0><input type=text name=query size=15><small><input type=submit value= Find ><br></small>powered by <a href=http://www.freefind.com>FreeFind</a></font></form>;type=form;");


Poster: reggsenterprises
Dated: Wednesday February 22 2006 - 14:03:10 GMT

John,
I like the new technical term.. "stuff it". I was actually going to try that but didn't think it could be that easy. Thanks.
Reggs