View Single Post
  #3 (permalink)  
Old 03-21-2008, 11:18 AM
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 Re: Change querystring with Javascript

Thanks for the reply.
I've got half of what you are saying already. I have a parameter so that if someone visits the url http://www.domain.com/search/?crit=searchCriteria, then the search will be performed.
What I want is, if they visit the url http://www.domain.com/search/, enter their criteria and click on the button, the url will change to http://www.domain.com/search/?crit=searchCriteria but the page will not reload. The search will be performed using ajax.

Anything I've tried with javascript (like assigning to document.location.search) makes the page reload, which is what I don't want to happen.
Reply With Quote