Nice,
Will try and set this up during the week. Reload shouldn’t be so bad as long as the user doesnt get effected too much.
First the page gets loaded with the results by $_POST
then when we refresh we actually redirect to use $_GET which AjaxSearch
is supporting (just not from the form). Now we get the same results from
a new search.
You can try it on my webpage search for google and mrhaw
Seems to work well. Doesnt effect the user too much, they cant see the results reload.
The only issue I can see is it will inflate Analytics data about pageviews of the page, but this shouldnt really be a big deal.
Looking forward to setting it up. Will let you know how it goes.
-
MODX Staff
- 12,272 Posts
You could use a Google Analytics plugin, and turn it OFF by default for the page, then the snippet could then inject the code which would show up on the reload, keeping the pageviews accurate.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Thanks for that tip!!