Solved

working with spry tabbed panels and onchange event

Posted on 2013-01-15
1
850 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
The viewer will learn how to dynamically set the form action using jQuery.
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…

778 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