Im making a db that lists customers that have been time wasters so that people that work for me can check up on those clients. Now I decided to use AJAX when searching and displaying the results to save the whole page reloading. Now I'm very new to AJAX but know my PHP and MySQL coding very well. Here is my problem.
I have a file called modules.php and depending on its ?name= determines what module it loads. In my case for the time wasters modules it is:
modules.php?name=Time_Wasters
let me start by showing the files I have set up to do the job.
firstly is the file: modules.php?name=Time_Wasters
http://www.steezmatic-designs.com/he...searchform.txt
^^ this is just the form to do the search and display the result from the innerhtml that is gotten from the AJAX
Secondly is the AJAX script which is embedded in the above file:
http://www.steezmatic-designs.com/help-files/ajax.txt
and thirdly is the file that AJAX queries:
http://www.steezmatic-designs.com/he...searchfile.txt
Now this is my problem. I search the db for a know entry and click search. Hurray it shows the result correctly as it should but only a split second before the whole page redirects to modules.php and then the page shows nothing as there is no longer a ?name= bit on the url. For some reason when the innerhtml is displayed it seems to loose the ?name=Time_Wasters bit of the url
I'm sure there is something missing in my code that is causing this. Can some one please help me with this. Ive spent hours and hours trying to figure out why this is happening. Any help is greatly apreciated. Thanks guys