Menu in modal popup in MSIE 6

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Croata
Advanced
Advanced
Posts: 15
Joined: Wed Jun 14, 2006 3:15 pm

Menu in modal popup in MSIE 6

Post by Croata »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

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

Ruth
User avatar
Croata
Advanced
Advanced
Posts: 15
Joined: Wed Jun 14, 2006 3:15 pm

Post by Croata »

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: Select all

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
Post Reply