Skip to main content
Participant
May 16, 2008
Answered

Spry Tabbed Panels

  • May 16, 2008
  • 1 reply
  • 549 views
Hi everybody!
I am using the Spry Tabbed Panels from wihin a page I have created. The tabs work great and the page looks good, however I was wondering if there was a way where I can open a particlular tabed panel from clicking on a link within the same page. Example: There is a ceratin product that is displayed and to the right of the image there are bullets. Below the image is the Spry tabbed panel and each tab has the same name as the bullets near the image. If the viewer clicks on one of the bullets, I would like the corresponding tab in the tabbed panel to open (go to the content of the tabbed pannel). Can anyone help? Iwould be greatly appreciated.

Thank you and have a great week-end.
This topic has been closed for replies.
Correct answer Newsgroup_User
FrancoDC wrote:
> Hi everybody!
> I am using the Spry Tabbed Panels from wihin a page I have created. The tabs
> work great and the page looks good, however I was wondering if there was a way
> where I can open a particlular tabed panel from clicking on a link within the
> same page. Example: There is a ceratin product that is displayed and to the
> right of the image there are bullets. Below the image is the Spry tabbed panel
> and each tab has the same name as the bullets near the image. If the viewer
> clicks on one of the bullets, I would like the corresponding tab in the tabbed
> panel to open (go to the content of the tabbed pannel). Can anyone help? Iwould
> be greatly appreciated.
>
> Thank you and have a great week-end.


Sure, you can do this. Take a look at the code for this page:
http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_unobtrusive.htm

In particular this file:
http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tp_unobtrusive.js

If it helps, generally the next question folks ask is if they can do this from a link on another page and yes, you can, take a look at the code at the bottom of this page:
http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html



--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert

1 reply

Newsgroup_UserCorrect answer
Inspiring
May 16, 2008
FrancoDC wrote:
> Hi everybody!
> I am using the Spry Tabbed Panels from wihin a page I have created. The tabs
> work great and the page looks good, however I was wondering if there was a way
> where I can open a particlular tabed panel from clicking on a link within the
> same page. Example: There is a ceratin product that is displayed and to the
> right of the image there are bullets. Below the image is the Spry tabbed panel
> and each tab has the same name as the bullets near the image. If the viewer
> clicks on one of the bullets, I would like the corresponding tab in the tabbed
> panel to open (go to the content of the tabbed pannel). Can anyone help? Iwould
> be greatly appreciated.
>
> Thank you and have a great week-end.


Sure, you can do this. Take a look at the code for this page:
http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_unobtrusive.htm

In particular this file:
http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tp_unobtrusive.js

If it helps, generally the next question folks ask is if they can do this from a link on another page and yes, you can, take a look at the code at the bottom of this page:
http://labs.adobe.com/technologies/spry/samples/utils/URLUtilsSample.html



--
Danilo Celic
| Extending Knowledge Daily : http://CommunityMX.com/
| Adobe Community Expert
FrancoDCAuthor
Participant
May 20, 2008
Thanks for the information, it works great.
I have another question, I was wondering, since my panel is towards the end of the page, is there a way to keep the page at its current location as oppossed to refreshing and moving up when a link is clicked? When you click on the tab the page remains and the panel chanes as opposed to when you click on the link the pannel changes but the page refreshes and goes to the top.
FrancoDCAuthor
Participant
May 20, 2008
Nevermind, I overlooked the obvious, it works fine now.

Thanks