Summercool Summercool
2007-Sep-17 02:53 UTC
are there a few basic ways to do AJAX on Rails?
are there a few basic ways to do AJAX on Rails? or is it open ended... just like using MFC to write a Win32 app... you can do it any way you want. right now I see two ways to update content using AJAX on Rails: one is to link_to_remote or form_remote_tag with the :update option to update the DOM_Object.innerHTML with the action code returned. the other is to link_to_remote or form_remote_tag and just call to the action, update the data, and then let the RJS handles the rest. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, AJAX as implemented and used in Rails is not limited to link_to_remote or form_remote_tag. I would recommend "AJAX on Rails" or other resources by using Google. Next, the more detail that you put into your question the better people on the list can assist you. Lastly, Rails is a web development framework that can be used in many ways to construct an application. Thus, there''s no one way of doing something in Rails. Good luck, -Conrad On 9/16/07, Summercool Summercool <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > are there a few basic ways to do AJAX on Rails? or is it open ended... > just like using MFC to write a Win32 app... you can do it any way you > want. > > right now I see two ways to update content using AJAX on Rails: > > > one is to > > link_to_remote or form_remote_tag > with the :update option to update the DOM_Object.innerHTML with the > action code returned. > > the other is to > link_to_remote or form_remote_tag > and just call to the action, update the data, and then let the RJS > handles the rest. > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---