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

Menu in modal popup in MSIE 6


Poster: Croata
Dated: Wednesday August 29 2007 - 0:42:42 BST

Hi,

We're trying to build a menu in a modal popup window, as you can see here. This is an exclusive feature of MSIE 6 (maybe 7 too?).

From the popup window, if you choose the option "Submit Me!" in the menu, the form will be submitted and you'll be driven to another page.

The problem is there's an unwanted window who opens in the submit process with the URL javascript;;

All the code is here.

--
Thanks a lot,
Cro


Poster: Ruth
Dated: Wednesday August 29 2007 - 2:34:10 BST

Hi,

I'm not a js person, just so you know, but try the following. It seemed to work for me - on my desktop anyway.

Change your submit menu to

Code:
with(milonic=new menuname("MenuContext1")){
    style=MenuContexto31_style;
    aI("text=Submit Me!;url=javascript:submit_me()");
}


Hope this helps

Ruth


Poster: Croata
Dated: Thursday August 30 2007 - 21:37:58 BST

Strangely, your code doesn't work for me: it complains about the "unknown" object submit_me; but it inspired me to write the next piece of code who does the trick:

Code:
with(milonic=new menuname("MenuContext1")){
    style=MenuContexto31_style;
    aI("text=Submit Me!;url=#;clickfunction=submit_me()");
}


If you aren't a JS person, then what's left for the rest of us...

Ruth, Thanks a bunch for your help!

--
Regards,
Cro


Poster: Ruth
Dated: Thursday August 30 2007 - 22:04:32 BST

Hi,

See, I told you I wasn't a js person. I forgot that I put your submit me thingee at the top of the data file :lol:

Ruth