Solved

working with spry tabbed panels and onchange event

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

863 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

26 Experts available now in Live!

Get 1:1 Help Now