PDA

View Full Version : Accordion Arrow Side Menu - In Frames



SilverCloud
04-14-2010, 03:13 AM
Hi,
I have just come across your Accordion Arrow Side Menu. It is great menu, works just fine and it would fit exactly to my need. However, I want to use it in the frame page, and the problem is that instead of in the “main” frame, the HEADER LINK always displays the desired page in the same frame as the menu.
Would you please help me with that? Thanks.
:confused:

djr33
04-14-2010, 03:38 AM
This has been moved to the correct area.
This question is related to one of the Dynamic Drive scripts. Please use this forum (http://www.dynamicdrive.com/forums/forumdisplay.php?f=2) for questions about DD scripts.
This thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) describes how you should post your question in that forum.

ddadmin
04-14-2010, 09:23 AM
Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

Are you using the "clickgo" option to get the header to go to the designated page once its sub menu has expanded?

SilverCloud
04-14-2010, 09:51 PM
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm

Sorry about the problems with my question.

Yes, I'm using the "clickgo" option. This option is actually the main reason why I like this menu.
The HTML setting in the page to '<base target="main">' or putting the 'target="main"' directly into the link doesn't make any difference. Instead of to the "main" frame, it still goes to the "menu" frame.

ddadmin
04-15-2010, 06:43 AM
Ok, try finding the below line inside the .js file:


setTimeout(function(){location=targetLink.href}, 200)

and change that to:


setTimeout(function(){parent.myframename.location=targetLink.href}, 200)

Where "myframename" is the name of the FRAME you wish to target per its name attribute.

SilverCloud
04-15-2010, 07:23 AM
Thank you very much for your help, Daniel. Now it works like a magic. It is great menu. Thanks again.

ViKiNGi
01-27-2011, 01:20 PM
This is what i need too. Can you add this for your future -update?

Greetings

-V-



Ok, try finding the below line inside the .js file:


setTimeout(function(){location=targetLink.href}, 200)

and change that to:


setTimeout(function(){parent.myframename.location=targetLink.href}, 200)

Where "myframename" is the name of the FRAME you wish to target per its name attribute.