Hi guys,
I am using facebox in one of my projects. Is there a event to get the close/hide event of the box? onHide is not available ?
Hi guys,
I am using facebox in one of my projects. Is there a event to get the close/hide event of the box? onHide is not available ?
Checkout the doc's for it: http://github.com/defunkt/facebox/blob/master/facebox.js#L52
$(document).bind('close.facebox', function () {
// Facebox is closing :O
});
you can access the parent window of the iframe with window.parent
so here is what you should have.
jQuery(function(){
jQuery("a[rel*=facebox]").click(function () {
window.parent.$.facebox({ ajax: 'remote.html' });
});
});
that is assuming you use the 'rel' attribute to load facebox modals!