pramit — 2008-06-03T23:59:45-04:00 — #1
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?
jimmyp — 2008-06-04T02:42:32-04:00 — #2
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