Hi guys! What can I do if I want the browser to "remember" search results requested with ajax? I am using the jquery plugin Jquery Address but I can't piece together how to do it
here's a code snippet from my form submission:
var ajaxforms = {
searchoptions : function(){
$('form#searchoptions').ajaxForm({
url : base_url + 'search/categorysearch',
target : '#search_result',
beforeSubmit : blocksearchdiv,
success : revise_searchtable_onsuccess
});
},
searchfilters : function(){
$('form#searchfilters').ajaxForm({
url : base_url + 'search/filter',
target : '#search_result',
beforeSubmit : blocksearchdiv,
success : revise_searchtable_onsuccess
});
},
searchterm : function(){
$('form#termsearch').ajaxForm({
url: base_url + 'search/termsearch',
target : '#search_result',
beforeSubmit : blocksearchdiv,
success : revise_searchtable_onsuccess
});
}
and here's the callback function revise_searchtable_onsuccess:
function revise_searchtable_onsuccess()
{
$(function(){
$.tablesorter.defaults.sortList = [[0,1]];
$('#tableresults').tablesorter();
});
$.address // don't know what comes next
unblocksearchdiv();
}
please help me implement jquery address with this; or maybe you have implemented this with other plugins?