Menu not closing after targeting an iframe

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jadkins
Beginner
Beginner
Posts: 1
Joined: Mon Sep 29, 2003 10:54 am

Menu not closing after targeting an iframe

Post by jadkins »

Hi, im having problems getting the menu to close after it targets an iframe.

Once you click on the link the iframe will load the correct page, but the menu remains open. Ive seen the frames example and copied the code but im still not getting anywhere.

Im using version 5 of milonic and IE 6.

Any ideas?

Thanks
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Does it work for you correctly on the milonic site sample?

Do you have a URL we could view? Or can you post you menu_data file?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Mine does too, but the menu goes away when I move the mouse off it. I just assumed it was a setting I hadn't bothered to turn off.
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
im-press
Beginner
Beginner
Posts: 9
Joined: Mon Sep 15, 2003 2:00 pm
Location: Hastings, England
Contact:

Post by im-press »

I too am having this problem and tried the "closeonclick" property in the menu items but must admit that I still don't get the menu to close after clicking the sub menu item?

I guess I am either putting the property in the wrong place or not setting it correctly!

Anybody know how this should be set?

Regards
Ian
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The sample at http://milonic.com/menusample.php?sampleid=11 closes once you select Apache from the "Links Opened in IFRAME" menu.

If you can ensure that you have the latest version of the menu running, currently V5 RC14, and still see this problem let me know I'll take a look

Cheers
Andy
fabioroger
Beginner
Beginner
Posts: 2
Joined: Mon Mar 01, 2004 11:12 pm

Post by fabioroger »

Andy wrote:The sample at http://milonic.com/menusample.php?sampleid=11 closes once you select Apache from the "Links Opened in IFRAME" menu.
no, it does not close the menu after click there. .. I just tried this sample in mozilla firefox 0.8 and IE6 and it does not close.

I am also trying to do that, but could not so far.

any ideas?
fabioroger
Beginner
Beginner
Posts: 2
Joined: Mon Mar 01, 2004 11:12 pm

Post by fabioroger »

fabioroger wrote:
Andy wrote:The sample at http://milonic.com/menusample.php?sampleid=11 closes once you select Apache from the "Links Opened in IFRAME" menu.
no, it does not close the menu after click there. .. I just tried this sample in mozilla firefox 0.8 and IE6 and it does not close.

I am also trying to do that, but could not so far.

any ideas?
I just got it working.. the thing is that.. this menu item line does not work:

text=Something;target=iframearea;url=something.html;clickfunction=closeAllMenus()

this is due to the "target" property.. so if I just use a javascript function as url and in this function call closeAllMenus() it will work
Kevin@Kasper
Beginner
Beginner
Posts: 7
Joined: Tue Feb 24, 2004 10:54 am
Location: Belgium
Contact:

Post by Kevin@Kasper »

could you elaborate plz?

I wrote this function in the data file to change source & close menus:

---------
function changeIFurl(IFtarget){
parent.frames['mainIFrame'].location.href = IFtarget;
closeAllMenus();
}

--------

I'm using this aI string:

aI("text=  Last Minute;url=javascript:changeIFurl('http://www.connections-travel.com/lm_po ... nx&lang=nl');status=Zoek een Last Minute;");


But I'm getting this error:

Error: changeIFurl is not defined
Source File: javascript:changeIFurl('http://www.connections-travel.com/lm_po ... nx&lang=nl')
Line: 1
Post Reply