problem with menu having form

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
subodh
Beginner
Beginner
Posts: 8
Joined: Wed Dec 29, 2004 1:15 am
Contact:

problem with menu having form

Post by subodh »

Hi
I have implemented a similar menu item like the search menu item on your home page. The problem is due to auto-suggest/fill feature in XP it remembers the previous entries done in the text box.
So while typing in the text box, if the partial text matches any available entry, a dropdown lists opens up to select available entries. If I place my mouse over that list, the menu closes !!

Can someone please suggest, how to resolve this.

Thanks
Subodh
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Got a URL?
John
subodh
Beginner
Beginner
Posts: 8
Joined: Wed Dec 29, 2004 1:15 am
Contact:

Post by subodh »

can't post a url, because I am behind the firewall and this is being developed for an intranet site.

But I tried the same scenario on your site http://milonic.com/ and the behaviour is the same. Put the mouse on search menu and it opens the FORM menu item containing the textbox. Type some text there say "5912" and hit search. Again open the search menu, and try typing the same text "5912", as soon as "5" is entered another drop down list shows up to select from available options, and if you take the mouse on that list the menu below disappears.
Maybe this is browser dependent :( I am using IE 6.0 and OS is Windows XP Professional.

I have another question regarding the same. The text in the form (inside the menu) is appearing of different size and font than that of the other menu items.
How do I make the text font same as menu font??

The code for the menu item containing the form is given below

Code: Select all

with(milonic=new menuname("SearchMenu")){		
style = menuStyle;
top="offset=2"
margin=3;
aI("text=`<FORM METHOD=get ACTION='Controller?act=search_feature' name=search style='margin:0px;'><table><tr><td>Search Feature</td></tr><tr><td><input name=feature_id size=11></td></tr><tr><td><input type=submit value=Search></td></tr></table><input type=hidden name=act value=search_feature><input type=hidden name=home value='1'><input type=hidden name=mode value='1'></form>`;type=form;align=center;onbgcolor=;onborder=;");
}	
Thanks
Subodh Natu
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

subodh wrote:I have another question regarding the same. The text in the form (inside the menu) is appearing of different size and font than that of the other menu items.
How do I make the text font same as menu font??
Use a standard style= setup in the input statement; e.g.

Code: Select all

style=font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 10px;
Don't have an answer on the other thing yet.
John
subodh
Beginner
Beginner
Posts: 8
Joined: Wed Dec 29, 2004 1:15 am
Contact:

Post by subodh »

thanks a lot !! :o it solved the problem

Subodh
harm
Beginner
Beginner
Posts: 3
Joined: Fri Jan 07, 2005 1:15 pm

autocomplete=off

Post by harm »

Use AUTOCOMPLETE=OFF, so <input name=feature_id size=11> must be
<input name=feature_id size=11 autocomplete=off>. I didn't try it, but i think it should work.
source:
http://www.htmlcodetutorial.com/forms/_ ... PLETE.html
subodh
Beginner
Beginner
Posts: 8
Joined: Wed Dec 29, 2004 1:15 am
Contact:

Post by subodh »

great solution !! It really works ! thanks a lot.
Post Reply