Change url in ajax page

Hi!

I want to change the url when I call another page through AJAX. The page must no refresh. I have seen trulia.com do it. Can anybody help please?

I assume you mean changing the hash value? (e.g. #home).

You can access this via “window.hash”.

One thing to note is that history will not work in most browsers so you’ll need to use one of the available history scripts - if you don’t it means that the back/forward buttons will not work within browsers. Here’s an eg - http://www.mikage.to/jquery/jquery_history.html