- This topic has 2 replies, 2 voices, and was last updated 7 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Ajax event listeners not working
split by @trevorsf from https://support.searchandfilter.com/forums/topic/ajax-event-listeners-not-working/
Hey, I currently seem to have the same problem but can’t see the private responses. What was/is the solution for this? Thank you.
It is possible that your circumstances are different, so you may need to explain in detail what you are doing. However, in the other thread ….
The form (which was using the Post Type Archive/WooCommerce display results method) the other user made had only one taxonomy field on it, and they had set it to ‘Enable Filtering on Taxonomy Archives’, so selecting one of the taxonomy terms caused the page to re-direct to that taxonomy term archive page. Thus Ajax will never fire ajaxfinish or ajaxstart.
Similarly, ajaxformstart and ajaxformfinish only fire if Auto Count is enabled (both options), which they were not, and also they only fire if there are two or more fields that the count can be updated upon, which there were not.
An additional bit of information. The other thread was resolved. It had happened because the user’s site had two different jQuery libraries included – WordPress default (1.12.4 version) and the 3.x version. After removing one of these the events started working fine.