Welcome Guest, Not a member yet? Register   Sign In
Any ideas on how to change the URL when submitting a form through AJAX?
#1

[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?
#2

[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
#3

[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.




Theme © iAndrew 2016 - Forum software by © MyBB