Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › asp_results_show broken
This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko 1 year, 3 months ago.
- AuthorPosts
- December 7, 2021 at 2:53 am #35884
after updating to 4.21.6
asp_results_show no longer triggers…please help
December 7, 2021 at 10:36 am #35895Hi,
I just tested, and it executes correctly.
I also checked your custom code directly, and that applies as well, it is surely executed: https://i.imgur.com/iQ6kk7v.png
Best,
The hover event is triggered: https://i.imgur.com/K7s97vU.png
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 16, 2021 at 12:21 am #35970I am sorry fo the delay; I had to fix something else first, but I do not see this triggering, nor executing my code. Please take another look:
https://www.sublime.wine/winesearch/
via https://www.sublime.wine/wordpress/wp-content/themes/sublimewine/js/winesearch.js
is supposed to trigger an alert(“hello”); — I commented out everything else for clarity–but it isn’t…I thought it was perhaps a sequencing issue and tried putting the script in the footer underneath everything else instead, but that didn’t work either.
Any help would be appreciated.
Thank you,
TaniaDecember 16, 2021 at 10:02 am #35973Oh okay, I see the issue now.
The code is not correct, you are executing the event on the document handler, while it should be on the search container:
jQuery(".asp_main_container").on("asp_results_show",function(event, request, settings) { alert("hello"); });
This will work.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 16, 2021 at 8:54 pm #35986Egh. I don’t even know how that happened or why I didn’t see it!
Thank you!!
TaniaDecember 17, 2021 at 10:09 am #35989You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.