Results 1 to 5 of 5

Thread: Tab Content Script Issue - Reposting with explanation

  1. #1
    Join Date
    Jul 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Script Issue - Reposting with explanation

    1) Script Title: Tab Content Script

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

    3) Describe problem:

    On clicking any tab, the code tries to open a url ( http://www.mydomain.com/# ) instead of switching to that tab :


    <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#" rel="tcontent1">Tab 1</a></li>

    <li><a href="#" rel="tcontent2">Tab 2</a></li>

    </ul>


    <div class="tabcontentstyle">

    <div id="tcontent1" class="tabcontent">

    Tab 1 content here
    </div>


    <div class="tabcontentstyle">

    <div id="tcontent2" class="tabcontent">

    Tab 2 content here

    </div>
    </div>

    <script type="text/javascript"><br/>//Start Tab Content script for UL with id="maintab"

    Separate multiple ids each with a comma.<br/>initializetabcontent("maintab")<br/></script>

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

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out. FYI it'll generally do that if the script is not installed or working properly.

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

    Default

    just visit www.delhievents.com & look at the bottom ( not footer ) of the content area at the centre.

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

    Default

    Hmmm one glaring problem is the following:

    Code:
    <script type="text/javascript"><br/>//Start Tab Content script for UL with id="maintab"
    
    Separate multiple ids each with a comma.<br/>initializetabcontent("maintab")<br/></script>
    You have yet to initialize the script, and what you have inside the script tags should be commented out. Per the instructions on the DD demo page, the result should look something like:

    Code:
    <script type="text/javascript">
    
    initializetabcontent("maintab")
    
    </script>
    Please read the instructions for the script again.

  5. #5
    Join Date
    Jul 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh thanks! And sorry for the silly mistake!

    Regards, Rohit

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
  •