开发者

JQuery Progress Circle + fade page?

开发者 https://www.devze.com 2023-02-15 20:39 出处:网络
Using JQuery how would I make the page dim / fade and display a progress circle 开发者_如何学Pythonin the center which is animated? I\'d like to do this when the user fills out a form and clicks submi

Using JQuery how would I make the page dim / fade and display a progress circle 开发者_如何学Pythonin the center which is animated? I'd like to do this when the user fills out a form and clicks submit and is awaiting a response.


I would use the block ui plugin - http://jquery.malsup.com/block/

Then call this before doing the ajax request

$('body').block({ message: '<img src="loading.gif" />' });

And then this is the success method

$('body').unblock();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号