开发者

Colorbox: Show/simulate 'loading' animation for inline content

开发者 https://www.devze.com 2023-02-19 21:51 出处:网络
Hi there I\'m using ColorBox, and we do few steps in a form with jquery, and we want to show the loading animation of ColorBox wh开发者_如何学运维ile we are waiting for the reply from ajax.

Hi there I'm using ColorBox, and we do few steps in a form with jquery, and we want to show the loading animation of ColorBox wh开发者_如何学运维ile we are waiting for the reply from ajax.

How we can use it?

Thank you in advanced!


I think what you want is fastIframe

$("#thediv").colorbox({iframe:true, innerWidth:870, innerHeight:500, fastIframe:false});


You can turn the loading graphic on and off with the calls:

$('#cboxLoadingGraphic').show(); 

and

$('#cboxLoadingGraphic').hide();

In my app I call the show method in the beginning of the function call, then the hide method when the ajax call returns.

0

精彩评论

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