List Info

Thread: Browser history on rails with ajax




Browser history on rails with ajax
user name
2006-12-13 15:57:57
hi guys im playing with rails and ajax, i cant find any info
on howto
implement history using rails and ajax. Ive done this with
really
simple history, but i dont know how i would with rails. Is
it possible
to just call a javascript method easy from rails. so i can
call say a
loadpage method passing in the page or what should i do?


thanks


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---

Browser history on rails with ajax
user name
2006-12-14 00:06:54
The nature of AJAX breaks the back button in the browser,
and with it
browser history.

If you are looking to record the changes made during AJAX
calls,
perhaps something like acts_as_versioned would do the job?

http://svn.techno-weenie.net/projects/plugins/ac
ts_as_versioned/


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---

Browser history on rails with ajax
user name
2006-12-14 00:22:22
hmm ok then, so i cant use really simple history like i did
in my php
project, that has full bookmark capability, history and
allows for it
to work with no javascript and be viewable by search
crawlers. How can
i call a method from my template to render a link out. Where
would i
place the method. Just to make life easy for making method,
so instead
of link_to_remote( i call loadPage( where do i need to place
loadPage
ruby method to get it to render a link to the screen with
inputted
params.

Cheers


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---

Browser history on rails with ajax
user name
2006-12-14 04:10:16
The problem is ajax, not rails.  Ajax on PHP would have the
same
issues.

That said, are you trying to track a visitors progress
through your
website and provide history/back/bookmarks that way?  This
should be
possible.

If you want to create a method that is available application
wide, put
it in /controllers/application.rb


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---

Browser history on rails with ajax
user name
2006-12-14 10:38:13
Check this out!

http
://www.mail-archive.com/rubyonrails-spinoffsgooglegroups.com/msg01572.html


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---

Browser history on rails with ajax
user name
2006-12-14 10:39:16
And also this:

http://lists.rubyonrails.org/pipermai
l/rails-spinoffs/2006-July/004949.html


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "Ruby on Rails" group.
To post to this group, send email to rubyonrailsgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/rubyonrails
-~----------~----~----~----~------~----~------~--~---

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )