Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Use a query string to trigger filtered live results
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 2 years, 4 months ago.
- AuthorPosts
- December 23, 2020 at 8:19 am #30886
Is it possible to trigger the dropdown filters on https://resources-marqeta-ms.pantheonsite.io/resources/ with a query string to change the live results and not go to another page? I am looking to mimic what choosing in the dropdown filters does with using a query string such as https://resources-marqeta-ms.pantheonsite.io/resources/?resouce_filter_type=“ebook”, will that work with the live results on the page or is this only possible with a search and it will have to send me to another page?
December 23, 2020 at 12:52 pm #30895Hi,
Sort of, you can use the getStateURL javascript API function.
If you also append the following to the end of the state URL:
&asp_s&asp_id=1
(replace the number for the search ID), then the search will also automatically trigger.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 12, 2021 at 5:50 pm #31098I am trying to access the getStateURL doc and I am getting a 521 error, web server down. https://knowledgebase.ajaxsearchpro.com/other/javascript-api#current-search-state-url-presetting-the-search-filters-and-input-to-a-specific-state
January 13, 2021 at 2:17 pm #31113It is working perfectly fine to me in the console: https://i.imgur.com/yxsDdxV.png
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.