Thank you Branco !

On Jul 30, 12:33 pm, Branko Vukelić <bg.bra...@gmail.com> wrote:
> 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
> bra...@herdhound.com
> bg.bra...@gmail.com
>
> Lead Developer
> Herd Hound (tm) - Travel that doesn't bitewww.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 webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to