I'm using jquery 1.7.1 and facebox 1.3.
Also made the modification suggested here:
http://groups.google.com/group/facebox/browse_thread/thread/5b86d1ae3e234a30
I'm using the following method to bind the facebox links:
function BindFaceboxLinks(unbind) {
//$.live() doesn't work w/ facebox, need to re-bind when content
is reloaded
if (unbind) {
$('a.facebox').unbind();
}
$('a.facebox').bind('click', function () {
updateTargetId = this.rel;
}).facebox();
//on reveal, need to bind new async forms and cancellation links
$(document).bind('reveal.facebox', function () {
$('.async-form').ajaxForm(function (responseText) {
$('#' + updateTargetId).replaceWith(responseText);
$.facebox.close();
BindFaceboxLinks(true);
updateTargetId = null;
});
$('.facebox-cancel').bind('click', function () {
$.facebox.close();
updateTargetId = null;
return false;
});
});
}
A lot of the code I'm recycling from what I used with facebox 1.2 /
jquery 1.4.2 - is there anything obviously wrong with the setup? I'm
willing to downgrade if need be.
Thanks
Alex