PDA

View Full Version : Animated Collapsible Div: send URL to iframe and then toggle div?



Ouroboros
06-03-2010, 01:14 PM
1) Script Title: Animated Collapsible Div

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

3) Describe problem: Is it possible to have a link that sends a url to an iframe on the same page from inside a toggle div set that works?

Hi there, I have the animated collapsible div working fine already, but there is a problem I have that maybe someone can help fix. Basically I have a situation where I have two divs: one div that hides another that has a few text links inside of it. Clicking on one of these text links inside one of these divs is supposed to close the div that has the links and load content into an iframe. Well when one clicks on the link, the divs behave just fine, BUT the link itself isn't actually sent so the browser can act on it! I can see the link in the activity bar but I am guessing that the script performs the hide function BEFORE the browser can act on the link itself. Is there a way around this? Here is an example:


<div id="george"><a href="link.html" target="iframe" rel="expand[larry]">Link to send URL to iframe and then close this div</a></div><div id="larry"><a href="javascript:animatedcollapse.toggle(['george'])">goto to div with iframe link</a></div>

spyderman
06-03-2010, 04:36 PM
I have a Similar Issue.... I want to have the Main Toggle , Expand the Div & Go to A URL so that is associated with it... I am Using this feature as a Menu

http://www.creativebombgraphics.com/clients/CSS/menu.asp

I want US Silver Coins to go to a Specific URL and Maintain Expanded DIV

I am not Sure how to Ask this Question

ddadmin
06-03-2010, 10:51 PM
Ouroboros: Hiding the DIV shouldn't have any effect on the browser's ability to determine the referral information of the page loaded into the IFRAME. Please post a link to the problem page with any additional details of the issue added if possible.

spyderman, your issue sounds very different from the OP's. Implementing the ontoggle event handler (http://www.dynamicdrive.com/dynamicindex17/animatedcollapse_suppliment.htm) may be what you need, though better yet, you might look at DD Accordion Menu (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm), specifically, the "clickgo" option (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-arrow.htm) that when enabled takes the user to the URL defined inside a header when it's clicked on and expanded.

spyderman
06-04-2010, 02:07 PM
That is working the way I was expecting, Now the Question is which setting is to have NO tabs Selected at first. Say the homepage... I would not want a category Expanded by Default. Thank you DDAdmin