Rewriting URL in AJAX application
Posted
by
Artem Moskalev
on Stack Overflow
See other posts from Stack Overflow
or by Artem Moskalev
Published on 2012-10-21T22:58:05Z
Indexed on
2012/10/21
23:00 UTC
Read the original article
Hit count: 194
I am making a simple online application. I have a navigation bar with a few buttons and one "div" into which all the new contents will be loaded dynamically i.e. when I click "About", it will load the page parts into the "div" without reloading the whole page with .load() function. The problem is: what if I need to give a link to the Documents section of my web site, or the user wants to store this kind of link, the url is not rewritten when browsing my site. when the user stores the default link it will always link him to the default "Home" part.
How can I rewrite the URL and what is the most correct way to do this?
© Stack Overflow or respective owner