Support Forums

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro sf:ajaxfinish problem

Viewing 10 posts - 1 through 10 (of 20 total)
  • Einstein Gan
    #260653

    Hello,

    sf:ajaxfinish does not seem to be firing on my page https://bit.ly/301y3hi

    I have added in this code in the footer.php theme file:

    $(function(){
    $(document).on(“sf:ajaxfinish”, “.searchandfilter”, function(){
    console.log(“ajax finish”);
    });
    }(jQuery));

    But nothing happens.

    Please help!

    Regards,
    Tein

    Trevor Moderator
    #260682

    Can you try loading it inside its own script tags, rather than sharing with other scripts?

    Einstein Gan
    #260740

    Ok i tried placing in it own tag, but now a new error comes up:

    Uncaught SyntaxError: Invalid or unexpected token

    Einstein Gan
    #260742

    Sorry, my mistake. I was using the wrong double quote marks in the script.

    Anyway, still nothing happens…

    Trevor Moderator
    #260873

    What version of WordPress are you using, as your site is loading a very old version of jQuery (v1.10.2), whereas the current WordPress version loads v1.12.4, which is what our plugin needs?

    Some of the other jQuery libraries may need to be checked for versions as well.

    Einstein Gan
    #260918

    Hello, we’re using WP 5.5.1.

    I updated the jquery version to v1.12.4 as you have recommended but it still doesn’t work.

    Trevor Moderator
    #261030
    This reply has been marked as private.
    Einstein Gan
    #261194
    This reply has been marked as private.
    Einstein Gan
    #261196
    This reply has been marked as private.
    Ross Moderator
    #261551
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 20 total)

The topic ‘sf:ajaxfinish problem’ is closed to new replies.