Back button for AJAX in rails


#1

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


#2

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


#3

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


#4

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.


#5

On Jun 19, 6:07 am, Difei 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/#

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