Any ideas on how to change the URL when submitting a form through AJAX? |
[eluser]dynZack[/eluser]
Take a look at http://bit.ly/9E1Zii. When filtering products, the form is submitted with AJAX (GET request), the URL is updated accordingly, and the query results are fetched to the view. Anyone knows how to update the URL when asynchronously submitting a form?
[eluser]dynZack[/eluser]
Got an answer, they use hash : www.example.com/#blah-blah And here's how to do it http://bit.ly/c2dIFq
[eluser]richthegeek[/eluser]
The "absolute path" does not change - the data following the # does not cause a location refresh, as it is (attempting to) link to a named element within that URL. You can do this by updating the window[document.location] variable. |
Welcome Guest, Not a member yet? Register Sign In |