Reply To: after Ajax loading section with iframe fancybox links the fancybox does not open

Your Account / Forums / Easy FancyBox Pro / after Ajax loading section with iframe fancybox links the fancybox does not open / Reply To: after Ajax loading section with iframe fancybox links the fancybox does not open

June 23, 2015 at 7:00 pm #5226

That’s probably because the select field onchange event happens before the new content is loaded.

What plugin is providing this form with ajax loading of new content? Is it WP Views? In that case I suppose the script http://jobmed.netsolution.ch/wp-content/plugins/wp-views/embedded/res/js/wpv-pagination-embedded.js is responsible for loading new content… And there are a few events triggered in there that might be useful.

Like for example “js_event_wpv_pagination_completed” which could be used like this:


<script type="text/javascript">
jQuery( document ).on( 'js_event_wpv_pagination_completed', easy_fancybox_handler );
</script>

Nor really sure if that is the right trigger to hook on to but it’s worth a try 🙂