Solved

working with spry tabbed panels and onchange event

Posted on 2013-01-15
1
845 Views
Last Modified: 2013-01-15
Hello guys

I have a page that works with spry tabbed and when I change the panel I'd like to trigger a function. How can I create an event onchange? Is it possible to do that with Jquery?

thanks
alex
0
Comment
Question by:hidrau
1 Comment
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
ID: 38778431
Yes, it is possible...
After rendering you can easily add click event on tabs...

For ex.
in given link below:

http://livedocs.adobe.com/en_US/Spry/SDG/help.html?content=WSB22FDBAF-F639-49bd-B1A7-FABA521611D2.html

you can add below code:

$(document).ready(function(){
  $('#TabbedPanels1 li.TabbedPanelsTab').click(function(){
    //Add your code here...
    alert($(this).html());
  });
});

Hope this helps you.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now