View Single Post
  #1 (permalink)  
Old 03-19-2008, 04:46 PM
CygnetGames's Avatar   
CygnetGames CygnetGames is offline
Programmer
 
Join Date: May 2007
Location: York, England
Posts: 113
Rep Power: 5
CygnetGames is on a distinguished road
Default Change querystring with Javascript

I'm making an ajax search page. I've got all the ajax working, but there's a usability issue with the query string.

In my setup, the user types a search query and clicks a button. Then javascript fetches the results via ajax and injects them into the page. All good.

The problem is - I want the user to be able to bookmark their search, or email the url to a friend, etc. With a naive way of doing ajax, they won't be able to do this as the url of the page doesn't change when a search is made.

So what I want to be able to do is to alter the query string of the url using javascript without reloading the page. Is this possible?
Reply With Quote

Sponsored Links