# Back button for AJAX in rails

**URL:** <https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236>\
**Category:** Rails\
**Created:** [June 19, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236 "2007-06-19T14:01:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![difei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@difei](https://www.ruby-forum.com/u/difei)\
**Post date:** [June 19, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236/1 "2007-06-19T14:01:51Z")

</div>

Greetings all,

I am wondering are there any thing like link\_to\_remote(:update, :url) in  
rails which preserves the navigation feature (back & forward button as  
well as bookmarks) of the browser? Thanks very much!

Cheers,  
Difei

---

<div class="post-metadata">

**Author:** ![difei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@difei](https://www.ruby-forum.com/u/difei)\
**Post date:** [June 19, 2007, 2:40pm UTC](https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236/2 "2007-06-19T14:40:41Z")

</div>

Nothing is built into Rails.

Just design your site to work with the Back button. A good way of doing  
this  
is to make the site without Ajax, and then add it with the UJS plugin.

Jason

---

<div class="post-metadata">

**Author:** ![difei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@difei](https://www.ruby-forum.com/u/difei)\
**Post date:** [June 19, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236/3 "2007-06-19T15:07:47Z")

</div>

The original poster was looking for an ajax history plugin (a plugin  
that automatically maintains an ajax history). Don’t think one exists  
however.

On 19 Jun 2007, at 14:40, Jason R. wrote:

> Greetings all,
> 
> I am wondering are there any thing like link\_to\_remote  
> (:update, :url) in  
> rails which preserves the navigation feature (back & forward button as  
> well as bookmarks) of the browser? Thanks very much!

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![difei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@difei](https://www.ruby-forum.com/u/difei)\
**Post date:** [June 19, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236/4 "2007-06-19T15:07:55Z")

</div>

Jason R. wrote:

> Nothing is built into Rails.
> 
> Just design your site to work with the Back button. A good way of doing  
> this  
> is to make the site without Ajax, and then add it with the UJS plugin.
> 
> Jason

Thanks for the suggestion. I’ll have a try.

---

<div class="post-metadata">

**Author:** ![difei](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@difei](https://www.ruby-forum.com/u/difei)\
**Post date:** [June 19, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/back-button-for-ajax-in-rails/107236/5 "2007-06-19T15:39:50Z")

</div>

On Jun 19, 6:07 am, Difei [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Posted viahttp://www.ruby-forum.com/.

there’s been threads on rails-spinoffs on back button, bookmarking,  
undo:  
[http://groups.google.com/group/rubyonrails-spinoffs/browse\_frm/thread/1e136c24c674aa2b/#](http://groups.google.com/group/rubyonrails-spinoffs/browse_frm/thread/1e136c24c674aa2b/#)

Also look at “Pragmatic Ajax” book and this Dojo page  
[http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book0](http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book0)
