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
Menu not closing after targeting an iframe
- fredlongworthhighschool
- Mega Advanced
- Posts: 362
- Joined: Fri Jun 27, 2003 11:34 am
- Location: Manchester, England.
- Contact:
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
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
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
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
-
- Beginner
- Posts: 2
- Joined: Mon Mar 01, 2004 11:12 pm
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.Andy wrote:The sample at http://milonic.com/menusample.php?sampleid=11 closes once you select Apache from the "Links Opened in IFRAME" menu.
I am also trying to do that, but could not so far.
any ideas?
-
- Beginner
- Posts: 2
- Joined: Mon Mar 01, 2004 11:12 pm
I just got it working.. the thing is that.. this menu item line does not work:fabioroger wrote: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.Andy wrote:The sample at http://milonic.com/menusample.php?sampleid=11 closes once you select Apache from the "Links Opened in IFRAME" menu.
I am also trying to do that, but could not so far.
any ideas?
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
-
- Beginner
- Posts: 7
- Joined: Tue Feb 24, 2004 10:54 am
- Location: Belgium
- Contact:
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
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