onclose and onload events

22 views
Skip to first unread message

Guillaume H

unread,
Nov 22, 2012, 2:27:48 PM11/22/12
to easybox...@googlegroups.com
Hi,

I was wondering if there is a built-in method to get an event when the box opens and closes. I need something like that to activate and deactivate some options in my application.

I looked a bit at the resource handlers with "show" and "hide" functions, but I did not fully understand in the documentation if it was useul for my problem and how to use them.

I know there is probably a way to detect from outside if the easybox container object changes but i'm not a big fan of this solution.

Thank you for your help,
Guillaume

Vincent Wochnik

unread,
Nov 22, 2012, 3:20:49 PM11/22/12
to easybox...@googlegroups.com
Currently, there are no such events. The resource handler events are just for ONE resource, that is preload the image, show and hide it. That doesn't solve your problem. What you would need to do is add a callback in the $.easybox function and in the close() function.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages