Forums Forums Search & Filter Pro Ajax loading pages breaks filter

Viewing 4 posts - 11 through 14 (of 14 total)
  • Trevor
    #107790
    This reply has been marked as private.
    Anonymous
    #107793
    This reply has been marked as private.
    Ross Moderator
    #107909

    Hey Graeme

    To initialise S&F dynamically, you could do:

    $('.searchandfilter').searchAndFilter();

    To remove S&F (which you may need to do if elements get reloaded, pehaps before the page is changed), your best bet is to use:

    $('.searchandfilter').off();

    Just be sure that the JavaScript you load, has a dependency for our S&F script ('search-filter-plugin-build'), or at least load it very late in your page, so that its called in the correct order.

    Let me know how you get on.

    Best

    Anonymous
    #107913

    Ross/Trevor – you guys rock. Thank you for the great support. `$(‘.searchandfilter’).searchAndFilter();

    That did the trick.

Viewing 4 posts - 11 through 14 (of 14 total)