The FooBox docs say it's possible to hook into FooBox events using code like
jQuery('.fbx-instance').on('foobox.afterLoad', function(e) {
alert(e.fb.item.url);
});
I'm not having any luck. I've tried putting this code inside the jQuery(document).ready() function and outside it and nothing's working. Has anyone had luck with this? Where does the code go?