It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Event question

Event question

Postby koolsamule on Wed Mar 17, 2010 10:28 am

Hi Chaps,
I have a PHP form with one input and a button. A jQuery script ('loading' animated gif) is triggered on the click of the submit button.
I also have a Spry Validation field linked to the input.
At the moment, if the validation is triggered, the animated gif continues and won't stop. The furthest I've managed to get with it, is to click the validation message to stop the animation, but what I'm really after is to stop the animation when the validation is visible/triggered, but I can't find a suitable Event.
Code: Select all
<script type="text/javascript">
         $(function() {

            $("#button_download")
               .click(function() {
               })
               .throbber();

            $("#sprytextfield1")
               .click(function(sprytextfield1) {
                  $.throbberHide();
               })
         });
</script>

If someone can point me in the right direction, that would be sweet.
koolsamule
 
Posts: 8
Joined: Thu Sep 03, 2009 11:32 am

Who is online

Users browsing this forum: No registered users and 5 guests