Forums › Forums › Search & Filter Pro › Scroll to results without refreshing
Tagged: ajax, bookmarkable
- This topic has 5 replies, 2 voices, and was last updated 5 years ago by
Trevor.
Viewing 5 posts - 1 through 5 (of 5 total)
-
Trevor(Private) November 13, 2020 at 8:36 am #266275
I am not sure I understand, and it does sound complex to describe, but here goes …
Do you mean that, depending on the choice made, you would want to scroll to a different place on the page?
IF that is what you wanted, I am not sure that is possible without reloading the page, at least not directly from our plugin.
However, we do have a JavaScript event that triggers after our Ajax has finished (
sf:ajaxfinish) which you could use to fire some JavaScript of your own making that works out where to scroll the page to. The code would look something like this:<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ // call your script or function here }); }(jQuery));</script> -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)