Event – on ajax updated

Forums › Forums › Search & Filter Pro › Event – on ajax updated

Viewing 4 posts – 1 through 4 (of 4 total)
  • Anonymous
    #41815

    Hi I would like to ask you if there is any even, which I can use it to check if ajax update of result was fired.
    I need for search input, to prevent enter – because this reset search and behave as cancel – visitors claim it.
    I can prevent for keypress, but after ajax update it is reseted again and you can press enter – which reset whole filter.

    …may be that could be included as option for search input.

    Ross Moderator
    #41858

    Hey Peter

    What is the issue exactly? Do you see the problem on our online demo?

    http://demo.designsandcode.com/sfpro-movie-reviews/search/

    RE the event – yup there is one, details can be found – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/ 🙂

    Thanks

    Anonymous
    #41861

    Hi, no there is not that issue.
    I will try to describe simply:
    – form is ajax
    – I use search (relevansi)
    – when you are inside search input (focus) and push enter – it reload page and reset whole filter

    …I fix it by jQuery for a moment:

    $('body').on('keypress', '.sf-field-search .sf-input-text', function (e) {
            if (e.which == 13)
                return false;
            //or...
            if (e.which == 13)
                e.preventDefault();
        });

    …I try to check documentation instead of FAQ, thank you 🙂

    Ross Moderator
    #43323

    Hey Peter

    I had a user with a similar problem recently, and we found out it was because he was loading an old / duplicate copy of jquery in his site, so there were two jquery scripts loaded in.

    This was causing the field to go blank exactly as you describe.

    There was also another bug with the search field (which you couldn’t see on your site because of this issue before), where if you press enter, the search form submits, but then immediately after it is autosubmitted again.

    This is fixed in the next version.

    Thanks

Viewing 4 posts – 1 through 4 (of 4 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.