Results 1 to 4 of 4

Thread: Animated Collapsible DIV: IE7 Persistance Problem

  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Animated Collapsible DIV: IE7 Persistance Problem

    1) Script Title: Animated Collapsible DIV

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

    3) Describe problem:

    I'm having an issue where IE7 won't adhere to the "enable persistence" variable within this script (everything else works fine). What's weird is that my browser adheres perfectly to this variable on the original script example page here on DD but not within my own pages. Mozilla works both here and on my site perfectly. I'm left wondering what code or settings reside on my page/site that makes IE7 not want to play nice. I haven't touched the original .js file and I've followed the tutorial true to form. Our site scripting language is PHP - this script is being used within a form to show/hide optional elements (not sure if the form elements have anything to do with it, but you never know). Any help would be greatly appreciated.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Validate your generated source code to at least HTML 4.01 Transitional.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

    Default

    Thanks John -

    I validated my particular page and got only a few minor warnings (in fact, my page got far fewer warnings than the original script example page received when I validated it). Are there any specific warnings or errors which would prove to cause IE7-only problems like this? Since neither my page nor the DD page pass validation 100%, there must be some other explanation.

    Again, I appreciate the help.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well you need to validate to at least the DOCTYPE I mentioned. In IE, without a valid DOCTYPE in the served code with nothing before it, this script can have all sorts of problems.

    Of course, some errors will not matter, but might as well fix them all. There could be other problems. If you need more help:

    Please post a link to the page on your site that contains the problematic script so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •