# Ajax, url, browser history

**URL:** <https://www.ruby-forum.com/t/ajax-url-browser-history/126023>\
**Category:** Rails\
**Created:** [January 14, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/ajax-url-browser-history/126023 "2008-01-14T20:06:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubynuby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ba9def/32.png) [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Post date:** [January 14, 2008, 8:06pm UTC](https://www.ruby-forum.com/t/ajax-url-browser-history/126023/1 "2008-01-14T20:06:32Z")

</div>

I got it into my head that pagination can use ajax calls so I can  
update the relevant portion of the page without reloading the entire  
thing

‘.pagination a:click’: function() {  
new Ajax.Request(this.href, { asynchronous:true, evalScripts:true,  
method:‘get’});  
return false;  
}

a little change in my controller and voila. except I then realized  
I’d just opened up a whole can of worms with ajax, url, browser  
history. doing some research, I found the solutions are rather  
complicated, browser dependent, and not completely satisfactory.  
e.g.,

[http://ajaxpatterns.org/Unique\_URLs#Solution](http://ajaxpatterns.org/Unique_URLs#Solution)

does rails/rjs help us out here with some clever abstraction/library  
methods for handling this? thanks
