Forums › Forums › Search & Filter Pro › Breadcrumb Navigation Issue
- This topic has 32 replies, 3 voices, and was last updated 8 years, 5 months ago by
Anonymous.
-
Ross Moderator(Private) December 24, 2016 at 3:48 pm #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(Private) December 24, 2016 at 4:50 pm #78583Thanks 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(Private) December 31, 2016 at 3:51 pm #79384Hi 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
-
AuthorPosts