Low Search Ajax
I have been working on a simple low search implementation for the past few hours that works fine before attempting an ajax solution. I understand that this question probably gets tiring, so I will say that I have tried everything I can think of to get this working. Here is a pastie for my search result page.
Search Result Page
http://pastie.org/private/tyxpfo2iouh...
To rule out any form serializing issues, I am simply trying to pass a non-dynamic query strings using ajax. When I go ahead and pass an encrypted url that Low Search had spit out by default, my AJAX works fine. My problem is replicating a similar encypted URL in JavaScript. Here are some URLs I have tried.
Works! (Which rules out any AJAX specific issues I think.
http://mysite.com/search/results_page...
Doesn't work
http://mysite.com/search/results_page...
How can I pass "my_attempted_query" to the result page? I sure hope this makes sense.
Replies
jarrod.payne5 20 Dec 2012 04:26
A simpler question might be...
How can I pass a query to the result page without knowing the encrypted version of the keywords beforehand?
Low 20 Dec 2012 08:49
Try using the URL tag with encode="no" to get an example of what the non-encoded search URL looks like. Then change any of the parameters as you see fit.
jarrod.payne5 20 Dec 2012 18:39
I still get an encoded search string. Here is an example url
http://mysite.com/?ACT=21&keywords=ey...
Here is a URL that would more accurately reflect what I need. (Still with an encoded search string)
http://mysite.com/?ACT=21&keywords=ey...
The result page I used to generate the above URL returns results properly. When copy/pasting the url, the correct result page is returned, but there are no results.
Low 21 Dec 2012 08:41
You should be able to just trigger the search by using a query string like this: