snooper
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!
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!