Results 1 to 4 of 4

Thread: Animated Collapsible Div: send URL to iframe and then toggle div?

  1. #1
    Join Date
    Sep 2009
    Posts
    9
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Animated Collapsible Div: send URL to iframe and then toggle div?

    1) Script Title: Animated Collapsible Div

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.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:

    Code:
     <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>

  2. #2
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation

    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/...s/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

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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 may be what you need, though better yet, you might look at DD Accordion Menu, specifically, the "clickgo" option that when enabled takes the user to the URL defined inside a header when it's clicked on and expanded.
    DD Admin

  4. The Following User Says Thank You to ddadmin For This Useful Post:

    spyderman (06-04-2010)

  5. #4
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •