Forums Forums Search & Filter Pro Ajax Issue?

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #14212

    I’m having an AJAX issue — when I check AJAX enabled in the backend, my page still refreshes itself — why is this so?

    Ross Moderator
    #14213

    It is likely a JavaScript error on your page – check the JS console using something like firebug.

    If you are displaying results using a shortcode then you will need to also ensure “results url” is set correctly, and if you are displaying your results as an archive you will need to make sure you ajax selector is set correctly.

    Thanks

    Anonymous
    #14440

    This is solved. Container was set to #content by default.

    Maybe you could update your documentation to note that Ajax needs the correct container to function correctly?

    Ross Moderator
    #14441

    Hey Kyle – I’m glad you’ve got it working.

    Did you check the last part of this page? –

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/as-an-archive/

    If so, then do you think that this still needs to make more clear? Happy to update if its going to help people! 🙂

    Thanks

    Anonymous
    #14443

    Hello Ross,

    Hmm, as feedback — I think screenshots (cropped, of course) would help…

    As with your text, maybe you can consider this small edit:

    Configuring Ajax

    This requires a little knowledge of HTML & CSS, and what CSS selectors are.

    Before doing anything at all with Ajax, we must make sure that the above (without Ajax) is working correctly – otherwise you may find it very hard to fix or find errors you may be receiving.

    By default, the Ajax’s Results Container is set to #content to be compatible for themes. However, certain themes may require the Results Container to be set to the correct ID / Class, especially when if your Ajax option is checked but your page is constantly refreshing when filters are applied.

    [image]

    If set correctly, the Results Container’s ID / Class is the area that will then be refreshed when new search results are loaded in via Ajax.

    Hope this helps.

    Cheers,
    Kyle

    Ross Moderator
    #14449

    Thanks for the suggestion 🙂

    I am looking at completely redoing the docs, when we release V2.0 anyway, and hope to make big improvements.

    Thanks

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