开发者

colorbox onError

http://colorpowered.com/colorbox/

I am using color box.

$('#.boxItems').colorbox({onComplete:function(){

alert("completed");

}});

onComplete work when the event is completed.

But at some particula开发者_JAVA技巧r cases im my application onComplete don't work I know it is because some error happening at my server side

BUT ,can i have a call back function onError()


The jQuery selector you are using is odd. Consider changing to be one of the following (not both like you have it):

  • $('.boxItems').colorbox...
  • $('#boxItems').colorbox...

As far as I know, ColorBox doesn't support an onError callback. Set a breakpoint inside the ColorBox script to trap your action.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜