194950/how-do-i-access-foobox-lightbox-jquery-events-api
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?
Here's the page in the docs: http://docs.fooplugins.com/foobox/developers/foobox-jquery-events/
Their docs site doesn't seem to be responding, but try this, let me know if it works:
(function ($) { $(function () { var myFoo = $('.fbx-instance').foobox({ afterLoad: function (e) { alert("Hey I am loaded!"); } }); }); })(jQuery);
I have a form with an date ...READ MORE
How do I chain asynchronous AJAX calls ...READ MORE
How do I fix performance issues caused ...READ MORE
When using jQuery to traverse the DOM, ...READ MORE
Hey, jQuery is a fast and concise JavaScript ...READ MORE
Hello, Use the following script tag in your ...READ MORE
Hello @kartik, You have provided wrong order for ...READ MORE
Hello @kartik, Set the trigger option of the popover to hover instead ...READ MORE
$('#msg').text('jQuery is loaded!!!'); READ MORE
Surprisingly, there is not a great, simple ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.