Forums › Forums › Search & Filter Pro › No Results Found
Tagged: ajax, display results, filter, No result found, shortcode
- This topic has 17 replies, 2 voices, and was last updated 8 years, 3 months ago by Trevor.
-
Anonymous(Private) September 14, 2016 at 1:24 pm #57862
<script type="text/javascript"> //detects the start of an ajax request being made $(document).on("sf:ajaxstart", ".searchandfilter", function(){ console.log("ajax start"); }); //detects when the ajax request has finished and the content has been updated // - add scripts that apply to your results here $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); $(document).on('sf:ajaxfinish', easy_fancybox_handler ); //so load your lightbox or JS scripts here again }); //an event fired when S&F is initialised and S&F scripts have been loaded $(document).on("sf:init", ".searchandfilter", function(){ console.log("S&F JS initialised"); }); </script>
I apologize if I am making a stupid mistake, I need more coffee.
-
AuthorPosts