PDA

View Full Version : Tab Content Script



SEP800
11-30-2004, 09:10 PM
Hi! I'm having a little problem with your Tab Content Script (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm).

I'd like to know if there is any way for the script to skip it's load procedure if there are no tabs to load instead of giving out the error: " 'null' is null or not an object "?

Only IE users are affected by this. Firefox users will not see any errors.

Please help me out.

Thanks!

SEP800
12-01-2004, 08:37 PM
Anyone? :confused:

I'd really appreciate it. Please.

SEP800
12-14-2004, 08:10 PM
Someone please help me. I've looked everywhere. :(

ddadmin
12-15-2004, 11:35 AM
Hi:
Not a problem. Just add the below code as the first lines inside function do_onload():


function do_onload(){
if (!document.getElementById("tablist") || !document.getElementById("tabcontentcontainer"))
return
var cookiecheck=window.get_cookie && get_cookie(window.location.pathname).indexOf("|")!=-1

The above code assumes that you've removed either the master <ul> tag or <div> tag to remove the tabs.

SEP800
12-15-2004, 10:25 PM
Thank you! :)