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
- <a onclick="javascript: showJobDetails(12981);" href="#">see details</a>
- 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
- }
- });
- }
Now i found this
http://www.asual.com/jquery/address/ but i don't see how i could fit this in???
Any tips?
regards