Ajax result page to detail page and back again???/

Discussion in 'JavaScript' started by 123GoToAndPlay, Mar 10, 2010.

  1. #1
    HI,

    I have a result page loaded with jquery/ajax in a div, when i clicked the details of one of the results i load the details in the div. But now when you hit the back button it doesn't go to the previous results??

    How can i fix this??
     
    123GoToAndPlay, Mar 10, 2010 IP
  2. 123GoToAndPlay

    123GoToAndPlay Peon

    Messages:
    669
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Still looking for a solution

    Here's some extra info, this is a javascript function which is called onclick from each result in the list
    
    function showJobDetails(jobid) {
    	alert("Job ID "+jobid);
    	$.ajax({
    	   type: "POST",
    	   url: "jobs/details",
    	   //
    	   data: "jobid="+jobid,
    	   beforeSend: function() { $('#wait').show(); },
           complete: function() { $('#wait').hide(); },
    	   success: function(msg){
    	   		//check what is returned
    		 alert( "Data Saved: " + msg );
    		 $('#searchResult').html(msg); // Fill the search results box
    	   }
    	 });
    }
    
    Code (markup):
    Now i found this http://www.asual.com/jquery/address/ but i don't see how i could fit this in???
    Any suggestions
     
    Last edited: Mar 10, 2010
    123GoToAndPlay, Mar 10, 2010 IP