close
Blipverts

Fancybox Breaks Javascript Jquery or Ajax

14

Javascript bindings usually happen in the doc ready. Fancybox loads pages after the doc ready so none of the javascript bindings occur. The solution is to wrap the non-working javascript in the jquery .live() function which, will bind on the future loading of the page or iframe in the fancybox frame:

$(‘#all_users .selectit’).live(‘click’, function() {
console.log(“test”);
admin

The author admin