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:09
Menu not closing after targeting an iframe
Poster: jadkins
Dated: Monday September 29 2003 - 11:10:03 BST
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
Poster: Hergio
Dated: Tuesday September 30 2003 - 2:00:19 BST
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?
Poster: fredlongworthhighschool
Dated: Tuesday September 30 2003 - 9:15:28 BST
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.
Poster: im-press
Dated: Friday October 3 2003 - 21:53:20 BST
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
Poster: Andy
Dated: Friday October 3 2003 - 22:50:07 BST
The sample at http://www.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
Poster: fabioroger
Dated: Monday March 1 2004 - 22:16:50 GMT
Andy wrote:
The sample at http://www.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?
Poster: fabioroger
Dated: Tuesday March 2 2004 - 0:01:41 GMT
fabioroger wrote:
Andy wrote:
The sample at http://www.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
Poster: Kevin __at__ Kasper
Dated: Tuesday March 2 2004 - 10:16:58 GMT
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_portal2/menu.asp?CL=cnx&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_portal2/menu.asp?CL=cnx&lang=nl')
Line: 1