Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to update url on ajax call

 
sanguine sinha
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am calling a page using ajax , but my page url does not changes. How to change page URL still not refreshing page ?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64688
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The whole point of Ajax is to make requests in the background and not change the whole page or its URL. If that's not what you want, don't use Ajax.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well if you are loading new pages, you might as well refresh the page. But if you want a single page app. look into https://developer.mozilla.org/en-US/docs/Web/Guide/DOM/Manipulating_the_browser_history
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic