PDA

View Full Version : Resolved Target for Frameset



theebar
04-29-2009, 01:41 PM
1) Script Title: Accordion Menu script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-urban.htm

3) Describe problem: Target for "headerbar" (Mainmenu)

The Page is a Frameset (left; target "nav", right; target "main")
=> Testsite; http://web469.iname.ch/test09.htm

The Siteclick on the "submenu"-Menu open in the right Area (main) - thats ok :)
... but the Siteclick on the "headerbar"-Menu open in the left Area (nav) => must be also in the right Area (main) !!

What can I do?

Tx, theebar

ddadmin
04-29-2009, 07:38 PM
To change the link target of the header (when you've set it to respond via "clickgo"), just find the line:


setTimeout(function(){location=targetLink.href}, 200) //ignore link target, as window.open(targetLink, targetLink.target) doesn't work in FF if popup blocker enabled

inside the .js file, and change that to:


setTimeout(function(){parent.frames['framename'].location=targetLink.href}, 200) //ignore link target, as window.open(targetLink, targetLink.target) doesn't work in FF if popup blocker enabled

where "framename" is the name of the frame you wish to target.

theebar
04-30-2009, 09:54 AM
... good job :)
Thank you very much

theebar

theebar
04-30-2009, 10:47 AM
I determined into further problem; by repeated back and forth click on the "Headerbar" ("just" by Mainmenu/headerbar without Subnavigation/submenu) the respective side cannot be suddenly opened any longer (IEx + Firefox!).

Mainmenu/Headerbar-Navigation without Submenu:
- Kundennutzen im Niedrigenergie- und Minergie-Standard
- Unsere Dienstleistungen
- Kontakt
(Switch between this parts, after a certain time the do not function any longer !?)
=> Testsite; http://web469.iname.ch/test09.htm


Best thanks for your efforts
theebar