views:

231

answers:

2

Any event to close the jQuery colorbox while it's loading?

+1  A: 

If you're talking about a function, then $.fn.colorbox.close() will close the colorbox if it's shown, regardless of whether it is still loading. If you're talking about an event, you'll need to elaborate.

Max Shawabkeh
I'm loading some information into colorbox,while loading i should be able to close the colorbox. Once the content is loaded then $.fn.colorbox.close() will work, but while loading Is it possible to close?
Ganesh
A: 

onLoad:function(){ parent.$.fn.colorbox.close();}

use this function on where you are opening the colorbox.

nik