View Full Version : Anchor Links in Spry Tabbed Panels

Apr 19th, 2010, 02:31 PM
Hi guys,
trying to find a way to get the anchor links i create to go to the correct tabbed panel.


In the footer i have links that i want to take you to the correct tab.
I have set the anchors up and links in week 1 but could do with being able to activate the other tabs as well and believe it can be done.

additionaly i get the following errors for each tab that i dont know how to clear -
Warning: <li> proprietary attribute "tabindex"

thanks in advance for any tips :confused:

Apr 20th, 2010, 09:06 AM
According to the example code at http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WSFD7287A9-3B1C-4d49-9EAD-CB581B7BB71F.html there appears to be no need for tabindex="0" in your code.

According to http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WSFD7287A9-3B1C-4d49-9EAD-CB581B7BB71F.html it is possible to open tabs programmatically.

You could pass the requisite tab to the tabbed page using a query string. The following javascript will extract the query string from the pages URL. It would need further manipulation before being used to open the correct tab.

var queryString = window.location.href;
queryString = queryString.substr(queryString.indexOf("?")+1);