Easy FancyBox and dynamically created DOM elements
-
It seems that this plugin doesn’t work for elements that we receive through ajax request made with jQuerry. For example, I have a page with a list of products, the list is sometimes refreshed with data received from ajax request. Usually, in this situation when writing scripts jQuery you have to use delegates like this: $(“#some_parent_element_that_wraps_around_target_elements”).on(“click”, “.target_elements_to_handle_click_events_of”, function() { //code }); instead of handling click events for target elements direclty like this: $(“.target_elements_to_handle_click_events_of”).click(function() { //code }); because this won’t work for dynamically created DOM element.
So my question is: How to make your plugin work in my situation? Or does the paid version of your plugin handle such situation corretly?
The topic ‘Easy FancyBox and dynamically created DOM elements’ is closed to new replies.