Forums Forums Search & Filter Pro Breadcrumb Navigation Issue

Viewing 10 posts - 21 through 30 (of 33 total)
  • Ross Moderator
    #78574

    Hi Andrew

    I took a further look and realised its a limitation we’ve reached.

    Essentially, because the search form is inside your results container, the event sf:ajaxfinish does not get fired, so it will only work on first interaction….

    I’m looking at a better way to do this, or in fact, automatically re-initialise all search forms inside the results but this make take a little while to figure out..

    What you could do is detect when ajax finishes (jQuery JS) and then re-init your search form:

    http://api.jquery.com/ajaxcomplete/
    $('.searchandfilter').searchAndFilter();

    Thanks

    Anonymous
    #78583

    Thanks for looking.

    I had a look at the ajaxcomplete documentation. Although its a little beyond my coding knowledge I tried the following snippet:

    $j(document).ajaxComplete(function(){
        $j('.searchandfilter').searchAndFilter();
    });

    The ajax seems to work but it doesnt actually filter the results.

    Any further assistance appreciated.

    Ross Moderator
    #79384

    Hi Andrew

    I’ve just emailed you an update, which should allow the sf:ajaxfinish event to be fired, even when the search form is inside the results area.

    Please check junk folders as it contains a zip file.

    In addition, S&F should now automatically re-initialise search forms within the ajax results area – so you shouldn’t need any of the code above to do this now…

    Let me know if this is working for you?

    Thanks

    Anonymous
    #79543

    Thank you Ross it seems to be working great.

    Will this be part of the next official release? Will I need to update again when thats released?

    Anonymous
    #79549
    This reply has been marked as private.
    Ross Moderator
    #80014
    This reply has been marked as private.
    Anonymous
    #80046
    This reply has been marked as private.
    Ross Moderator
    #80048
    This reply has been marked as private.
    Ross Moderator
    #80416
    This reply has been marked as private.
    Anonymous
    #80432
    This reply has been marked as private.
Viewing 10 posts - 21 through 30 (of 33 total)