Forums › Forums › Search & Filter Pro › Ajax loading results on page load, instead of with click event listener.
- This topic has 5 replies, 2 voices, and was last updated 10 years, 1 month ago by Ross.
-
Anonymous(Private) August 26, 2014 at 9:04 pm #3986
Hi Ross, i installed the plugin today, and used the shortcodes for enabling Ajax as described on this page http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax , but the script is loading the results right after the page is loaded and the other thing is that, when I tried to specify a content selector for Ajax results (without using the inline shortcode) I got this XHR response in the console: Reload page source code domain.com/searchtemplate/?_sf_ajax_timestamp=1409082836424 . I could not find a similar topic in the forum pages. Waiting for your reply.
Ross Moderator(Private) August 27, 2014 at 9:40 pm #4022Hey Tsvetelin
This was the intended behaviour of the shortcode but now I think about it, its pretty clear that some users may not wish to see unfiltered results right away!
I’ll get this added as optional over the weekend.
RE The other way, the XHR response is because it is doing a cross domain request.
This plugin, uses built in WP functions for finding out the right URL to go to, the only thing I can think of is that it may be trying to access a different domain because of some of your settings?
This can be because S&F is trying to access a “https” version of the site, when it is in “http” (or visa versa) or that it is trying to access a sub domain.
A link would be useful so I can take a look.
Thanks
Ross Moderator(Private) September 4, 2014 at 1:42 pm #4276Hey Tsvetelin
I didn’t get a chance to look at this yet however I will be working all weekend on resolving S&F issues so will login on Saturday and try to figure out the problem.
Thanks
RossRoss Moderator(Private) October 18, 2014 at 11:00 pm #6135Hey Tsvetelin there is an update coming tomorrow, so that when using a shortcode results display immediately, not after page load.
Thanks
-
AuthorPosts