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 Murach's Java Servlets and JSP this week in the Servlets 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

how to update url on ajax call

sanguine sinha

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

Joined: Jan 10, 2002
Posts: 60749

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

Joined: Nov 08, 2001
Posts: 15376
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
jQuery in Action, 2nd edition
subject: how to update url on ajax call
Similar Threads
Migrating Application - From Struts with AJAX to JSF with AJAX
Ajax and struts integration
<rich:listShuttle> problem
STRUTS:getting count from database when a value in select box is changed
How do I achieve this solution?