On 2011-07-30 02:53 -0700, digistam wrote:
> in the webbrowser. I wonder if it's possible to show a "please wait"
> image or text during page load or post action. What's the best way to
> do this ?

You would need to use a JavaScript library like jQuery for that.
Basically, you trap the onSubmit event for your form:

    $('#myform').submit(function() {
      // Show the hidden div with the please wait image
      $('div#image').show();
      // Optionally, disable the submit button:
      $('input[type=submit]').
        attr('disabled', 'disabled').
        attr('value', 'Sending...');
    });

I'm not sure how well it would work, but you could try it anyway.

-- 
Branko Vukelic
[email protected]
[email protected]

Lead Developer
Herd Hound (tm) - Travel that doesn't bite
www.herdhound.com

Love coffee? You might love Loveffee, too.
loveffee.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to