Results 1 to 5 of 5

Thread: Persistance of Animated Collapse in iframe

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Persistance of Animated Collapse in iframe

    1) Script Title: Animated Collapsible DIV

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...edcollapse.htm

    3) Describe problem:
    G'day

    I have made extensive use of the animated collapse script on a project I am working on. It works fine except in one scenario. Persistence of the state is not working when the div is within an iframe.

    That is,
    //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
    var collapse1=new animatedcollapse("dog", 1000, true)

    This persist function works perfectly well when not calling the script from an iframe.

    Any help will be very much welcome! (please!)

    Many thanks

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

    Default

    Is the page contained within the iframe within your own domain as well? I ask this because if not, cookies won't work (cross site) out of the box. Depending on how things are set up, I can provide more info.

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yes, both pages are in the same domain, they are all part of one ASP .NET website project.

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

    Default

    Then it should work. I just tested this out, where the entire script and the DIV to animate is saved as a separate page (ie: animate.htm), and loaded as an IFRAME on the page:

    Code:
    <iframe src="animate.htm" style="width: 300px; height: 300px"></iframe>
    The persistence still works. Are you using a different set up? Perhaps a link to the problem page would be helpful.

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks, script is now working, not sure what went wrong, but seems to be all OK now.

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
  •