View Full Version : tabbed content: inactive tabs

01-29-2006, 10:30 AM
Hi all

script: tabbed content : http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

I have a dynamic setup, that some of the tabs, may be inactive, based on the pages content.

I have tried setting up <LI>s without links, and then also null link <LI>s - but i cant get these <LI>'s (which are the tabs of course) to be considered a real tab in the script.

In static mode, this doesnt really come into action, but what i have setup, is that when a user submits a form on one of the tabbed-DIVs, the page should reload, and load to that DIV initially. this should be relatively easy, based on the useful script

var initialtab=[1, "gb"]

but the thing is, that the inactive LI tabs, are not being counted, so although the correct DIV loads, the incorrect tab is selected initially.

so lets say i have 5 LI tabs, of which #3 should be inactive.
so lets say then, that i need to load (after submitting the form - or even without) - tab and DIV #4. the correct DIV will show, BUT, instead of actual LI-tab #4 showing, it will really be #5, because the script isnt counting inactive LI-tab #4.

hope this is understood.

many thanks!

01-29-2006, 05:39 PM
We really would need to see the page again:


01-29-2006, 05:52 PM
you're right - my mistake -> here is the URL:


here - 2nd tab from the left is inactive - and tabs are counted from the left. so when you submit the form (with anything) on tab 3 - whats loads is LI tab 3 - with skipping the inactive tab.

thanks again!

02-01-2006, 11:03 AM
hi all, sorry to bump this, but if anyone has ideas, i'd really appreciate hearing about it!