开发者

colorbox onError

开发者 https://www.devze.com 2023-02-13 21:22 出处:网络
http://colorpowered.com/colorbox/ I am using color box. $(\'#.boxItems\').colorbox({onComplete:function(){

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

精彩评论

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