asp_results_show broken

This topic contains 5 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #35884
    tpuell42
    tpuell42
    Participant

    after updating to 4.21.6
    asp_results_show no longer triggers…

    please help

    #35895
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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
    The hover event is triggered: https://i.imgur.com/K7s97vU.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #35970
    tpuell42
    tpuell42
    Participant

    I 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,
    Tania

    #35973
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Oh 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 :)


    #35986
    tpuell42
    tpuell42
    Participant

    Egh. I don’t even know how that happened or why I didn’t see it!
    Thank you!!
    Tania

    #35989
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.