On 12 Okt., 22:18, ogurec <[EMAIL PROTECTED]> wrote: > 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...
Adding to history like that is not yet supported. It's required to click on a link that changes the fragment identifier of the current URL. Try (don't forget to initialize history): $('a#submit').history(function() { // ajax submit... }); $.ajaxHistory.initialize(); with a link <a id="submit" href="#submitted">Submit</a> --Klaus