[jQuery] How to use history remote with search results
Hi,
i use history remote plugin and i try to make it work
when i send request from search form.
I tried this approach:
$('#search_form').submit
(
function()
{
var aurl = this.action;
var adata=$(':input',this).serialize();
$.ajax (
{
type:'GET', url:aurl+'?'+adata, dataType:'html',
success:function(x)
{
$.ajaxHistory.update('#' + aurl);
}
}
);
}
);
But with no success. Maybу someone can point me into right direction...