开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜