Results 1 to 2 of 2

Thread: ajax tabs script 2.2 problem

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question ajax tabs script 2.2 problem

    1) Script Title:
    ajax tabs script 2.2
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tent/index.htm
    3) Describe problem:
    What is this code below? I think it is syntatically wrong. Firebug states that:
    document.getElementById(tabinterfaceid) is null

    this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a") //Get all tab links within container

  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

    You're not getting that error on the demo page, are you? If so, it almost has to be a non-fatal error. Either that, or it's a major bug and should be reported. Somehow I tend to doubt that's what's going on here. If not -

    Do you really mean syntacticly? Then no, it's correct as far as that goes.

    Without hunting through the script to find out where you pulled that one line from, I would guess it's part of some kind of loop and that the HTML markup you've associated with the script creates a situation whereby literally:

    document.getElementById(tabinterfaceid) is null
    If you want more help:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    Last edited by jscheuer1; 10-26-2010 at 02:07 PM. Reason: reverse previous edit
    - 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
  •