Forums › Forums › Search & Filter Pro › Page reloads after filtering results
Tagged: javascript, page reload, results
- This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago by Ross.
-
Anonymous(Private) March 2, 2016 at 4:59 pm #38475
Hi Ross,
Regarding checkbox filters, I was wondering what kind of logic you’ve applied to on change events in search-filter-build.min.js?
I’m having quite an issue after filtering custom post types on my custom results page. I believe it’s the js issue, actually something with the ajax.
I can post an URL for you to take a look, but in private comment.
Thanks
Ross Moderator(Private) March 3, 2016 at 12:14 pm #38556Absolutely.
The issue here that you are using Ajax.
IF you disable ajax, the compare button will work as normal?
This is because, when an ajax search is submitted, new HTML/results are fetched and loaded in.
But, the Javascript for your compare button does not get applied to this new html/elements.
To get around this we provide a JS event, which tells you when the ajax request has completed, and then you can load / reload your javascript again for functionality like this.
Please see hte first question on the FAQs – https://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
Thanks
-
AuthorPosts