View Full Version : ajax tabs script 2.2 problem

10-26-2010, 12:51 PM
1) Script Title:
ajax tabs script 2.2
2) Script URL (on DD):
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

10-26-2010, 01:58 PM
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.