File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes how to update url on ajax call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to update url on ajax call " Watch "how to update url on ajax call " New topic
Author

how to update url on ajax call

sanguine sinha
Greenhorn

Joined: Jul 10, 2013
Posts: 1
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

Joined: Jan 10, 2002
Posts: 61314
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
GeeCON Prague 2014
 
subject: how to update url on ajax call