Results 1 to 7 of 7

Thread: 2 tab content problems

  1. #1
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 2 tab content problems

    I have put to use the tab content script. But for some reason I cant get the 4th tab to show anything. I have tried changing the id number such as sc4 to sc5 and that did not work. I have also added tab 5,6,and 7 but still the 4th tab is not working. Everything but the 4th tab works.......Any suggestions?

    Thanks in advance.

  2. #2
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am getting an error Object Required when I hit the 4th tab

  3. #3
    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

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

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

  4. #4
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Script url:http://www.dynamicdrive.com/dynamici...tabcontent.htm

    Test Url: http://quahoo.com/testdhtml.php

    Ok I had a few errors and solved those.

    But now I am still getting an error

    If I use Firefox it works fine and the javascript console shows no errors

    But with IE6 It still wont load the forth tab.

    Any suggestions?

    Thanks

    P.S. Sorry about my first post

  5. #5
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry forgot something the error seems to be in this area

    Code:
    function expandcontent(cid, aobject){
    if (document.getElementById){
    highlighttab(aobject)
    detectSourceindex(aobject)
    if (previoustab!="")
    document.getElementById(previoustab).style.display="none"
    document.getElementById(cid).style.display="block"
    previoustab=cid       // here to be exact
    if (aobject.blur)
    aobject.blur()
    return false
    }
    else
    return true
    }

  6. #6
    Join Date
    Aug 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You know what is weird. The same script but on a different page and using only html instead of php and it works.

    http://www.quahoo.com

  7. #7
    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

    Looks like it is working now.
    - 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
  •