This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

asp_results_show broken

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

    after updating to 4.21.6
    asp_results_show no longer triggers…

    please help

    #35895
    Ernest MarcinkoErnest 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

    #35970
    tpuell42tpuell42
    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 MarcinkoErnest 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.

    #35986
    tpuell42tpuell42
    Participant

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

    #35989
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.