Forums › Forums › Search & Filter Pro › Displaying & refreshing a “Total Results” value with AJAX search
- This topic has 4 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
Viewing 5 posts - 1 through 5 (of 5 total)
-
Anonymous(Private) July 13, 2020 at 7:46 pm #252694
I am trying to show a dynamic “total” results counter in my sidebar that reflects the total posts returned by each filter. I could really use some guidance on how to do this.
It’s worth mentioning that I am refreshing the results with AJAX so I can’t have a full page refresh occur.
Trevor(Private) July 15, 2020 at 4:06 pm #252944You would have to write some Ajax of your own to trigger that, triggered from our sf:ajaxfinish event, like this:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // call your Ajax script or function here }); }(jQuery));</script>
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)