0

Possible Duplicate:
How to rewrite URL without refresh, like GitHub.com

For example,Google Plus's navbar done it: If you click a navbar's button,you will see a div is updated,and the URL is changed. Can't ajax?How to do it? Thanks for your help :)

Community
  • 1
  • 1
italkboy
  • 64
  • 1
  • 7

2 Answers2

0

not ajax,it seems unlikely. but you can imitate to update but url is not changed

<a href="###" onclick="update()"/>

the function update,you can send a request by ajax

SKing7
  • 2,204
  • 4
  • 21
  • 29
0

They do 3 things:

  1. Load the data by using ajax
  2. They change the url of the page (notice - the page is not loaded, just the querystring changes).
  3. They push this url to the history of the browser.

all these are possible with the use of javascript.

Avi Y
  • 2,456
  • 4
  • 29
  • 35