Solved

working with spry tabbed panels and onchange event

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
The viewer will learn how to dynamically set the form action using jQuery.
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)

730 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