PHP & YUI - navigating to a tab
I want to dynamically navigate to the second tab from the first tab
after a certain action is performed. I'm using PHP and used the
header() function to try and navigate to header('Location:
somelink.php#tab2') but with no effect ... I also tried using
Does anyone know how this is done? The tabs seem to work OK if I just
click on them individually...
- You need to set the activeIndex or activeTab properties of the tab view widget.
something along the lines of:
myTabview.set("activeIndex", x) - where "x" is the index of the tab you wish to make active.
or if you have a reference to the tab you can set the activeTab instead, like
myTabview.set("activeTab", x) - where "x" is a reference to the tab you wish to make active.
Left Turn Solutions - Home of the Eddy Framework
Offical Left Turn Solutions Development Blog
Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.