Forums Forums Search & Filter Pro Ajax load on overlay hidden container

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #223820

    Hi,
    We have the pro plugin, and works ok, but the filter show the results on a div with overlay hidden, and the ajax load more on scroll not work so well because the distance is based on all the page height. Can you give me a clue to load more results on scroll to end of the container div please?

    Thanks a lot.

    Trevor
    #223843

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #223894
    This reply has been marked as private.
    Trevor
    #224014

    I cannot see a way around that, having looked at it. I will refer this to the plugin developer, Ross, to see if he think of a method.

    Ross Moderator
    #224105

    Hi Alejandro

    I can think of a way to do this.

    Search & Filter works off the window scroll event, so when the bottom of the results container is at a certain point in relation to the window, we fetch more results.

    However, I just did a little test and it seems by triggering the scroll event manually, S&F seems to play well in your scenario.

    What you need to do is something like this:
    1) On container scroll
    2) Trigger the window scroll event

    So in JavaScript it would be:

    jQuery('#results_column').on("scroll", function(){
        jQuery(window).trigger("scroll");
    });

    I tested this in your site (by pasting it into the JS console) and it seems to work ok.

    Thanks

    Anonymous
    #224961

    Hi Ross,

    Sorry for the late reply, but your solution work just perfectly.
    Thanks a lot to you and to Trevor for the support.

    Best regards

    Trevor
    #224967

    Thanks for letting us know. I will close this thread for now.

Viewing 7 posts - 1 through 7 (of 7 total)