Forums › Forums › Search & Filter Pro › Made a new Search and it doesn't works.
- This topic has 27 replies, 2 voices, and was last updated 8 years, 10 months ago by Ross.
-
Ross Moderator(Private) January 17, 2016 at 4:54 pm #34525
Hey Idan
But do you see, in the console, that “ajax start” and “ajax finish” is being logged?
When I looked, I saw these events being fired at the correct time.
This means the ajax, and S&F events are working just fine.
There must be something with the way you are loading your other scripts on those events…?
The example I linked above is now gone, so unfortunately I cannot check anything.
Thanks
Ross Moderator(Private) January 21, 2016 at 7:13 pm #34958Hey Idan
I don’t really know what to suggest.
If the events are firing correctly, and at the right time, there must be some other implementation issue.
As a test, replace you ajax complete code with this instead:
$(document).on("sf:ajaxfinish", ".searchandfilter", function(e, data){ console.log("ajax complete"); console.log(data.targetSelector); $(data.targetSelector).find("a").css("color", "#f00"); $(data.targetSelector).find("a").css("background-color", "#f00"); //so load your lightbox or JS scripts here again });
When ajax has finished loading, it should colour all your hyperlinks (in the results area) a red color.
If this happens, then S&F is working fine, the results are loaded via ajax, then, after the results loaded the events are fired and the text colour is updated.
Thanks
-
AuthorPosts