Is it possible to apply fancybox(or any lightbox alternative) on elements that are loaded by hquery's load() ? If so, how?
+2
A:
Check out jQuery Live to bind to elements added by jQuery.
Description: Attach a handler to the event for all elements which match the current selector, now or in the future.
code-zoop
2010-04-30 09:24:05
+3
A:
Assuming you're loaded elements are classed as "loadedElement"
$(".loadedElement").live("load", function() {
// Implement lightbox code
});
Or if you want to implement that lightbox before the images have finished loading, change "load" to "ready"
Zack
2010-04-30 09:26:40