Solved

working with spry tabbed panels and onchange event

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
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…

856 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