Using $.ajax and how to get the back button/link to work with asual adress??

Using $.ajax and how to get the back button/link to work with asual adress??

Hi,

I have a result page loaded with jquery/ajax in a div, when i clicked the see 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??

I found this; http://www.asual.com/jquery/address/ but i don't see how i could incorporate this as i am calling a javascript function, This is a javascript function which is called onclick from each result in the list

At the moment a see details link looks something like this
  1. <a onclick="javascript: showJobDetails(12981);" href="#">see details</a>

  1. function showJobDetails(jobid) {
  2.     alert("Job ID "+jobid);
  3.     $.ajax({
  4.        type: "POST",
  5.        url: "jobs/details",
  6.        data: "jobid="+jobid,
  7.        beforeSend: function() { $('#wait').show(); },
  8.        complete: function() { $('#wait').hide(); },
  9.        success: function(msg){
  10.           //check what is returned
  11.          alert( "Data Saved: " + msg );
  12.          $('#searchResult').html(msg); // Fill the search results box
  13.        }
  14.      });
  15. }

Now i found this http://www.asual.com/jquery/address/ but i don't see how i could fit this in???

Any tips?

regards