Results 1 to 4 of 4

Thread: Tab Content Script (v 2.0) Issue

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

    Default Tab Content Script (v 2.0) Issue

    1) Script Title: Tab Content Script (v 2.0)

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

    3) Describe problem: Upon the initial design, it worked perfectly, then as I started filling in content, I noted that upon loading the page anytime after the first time (when cached, or even trying to force a refresh), the content from all my tabs is displayed on the first tab.

    If I switch tabs and then switch back, the erroneous content doesn't appear. Likewise, if I refresh the page on a different tab, then switch to the first tab, nothing bad happens.

    The code itself has not been altered. I'm working on the page locally, but you can see a snapshot here:
    http://www.flashbackhumor.com/rpg/sh...alculator2.php

    I'm sure it's just some mundane syntax error, but could someone take a peek? I apologize in advance for all the ridiculously long SELECT lists.
    Last edited by FlashbackJon; 12-26-2007 at 11:25 PM.

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

    Default

    I took a look, but nothing jumps out as the problem yet. Interestingly, if I save the web page locally (all files) and run that page, the script works without the issues above. That makes it harder to diagnose. Can you remove all the select lists, so the HTML within each tab content is kept to a minimum? This makes it easier to isolate what the problem is.

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

    Default

    I took out everything but a single sentence in each DIV (I thought maybe the complex table structure might have been breaking it) but it does the same thing:
    http://www.flashbackhumor.com/rpg/sh...lator-test.php

    Any thoughts?

  4. #4
    Join Date
    Dec 2007
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Well, I figured it out. It was a mundane syntax error.

    My second and third tabs were:
    Code:
                    <div id="equipment" class="shadetabs">
                    	Test content on second tab.
                    </div>
    ...instead of...

    Code:
                    <div id="equipment" class="tabcontent">
                    	Test content on second tab.
                    </div>
    Thanks for the help!
    Last edited by FlashbackJon; 12-27-2007 at 04:11 PM.

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
  •