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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 60049
    
  65

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to update url on ajax call
 
Similar Threads
Migrating Application - From Struts with AJAX to JSF with AJAX
<rich:listShuttle> problem
How do I achieve this solution?
Ajax and struts integration
STRUTS:getting count from database when a value in select box is changed