Larry
Larry

Reputation: 31

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 while we are waiting for the reply from ajax.

How we can use it?

Thank you in advanced!

Upvotes: 3

Views: 4997

Answers (2)

tcell
tcell

Reputation: 61

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.

Upvotes: 6

user960001
user960001

Reputation: 61

I think what you want is fastIframe

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

Upvotes: 6

Related Questions