I''ve read an intro or two for RJS, but I don''t fully get what it may be used for - AJAX? Please post what you currently use RJS for. Thanks! Joe -- Posted via http://www.ruby-forum.com/.
The most useful thing to me about RJS is the ability to easily update multiple div''s after an Ajax call. For example, in my svn management control panel after a new repository is added I use RJS to update the list of current repositories which is contained in a div. I also update a div that shows a box detailing how to access the created repository. Lastly, I hide the "Add" button if the user has reached his limit on the number of allowed repositories. RJS allows me to put all these calls in a single, easy to read RJS file named after the ajax action that is being called. If you are going to use Ajax at all in your application, it is definitely worth learning how to use RJS. -- Joe Clarke RailsPlayground.com On 5/4/06, Joe <joe@yahoo.com> wrote:> I''ve read an intro or two for RJS, but I don''t fully get what it may be > used for - AJAX? Please post what you currently use RJS for. > > Thanks! > Joe > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 5/4/06, Joe <joe@yahoo.com> wrote:> I''ve read an intro or two for RJS, but I don''t fully get what it may be > used for - AJAX? Please post what you currently use RJS for.http://destiney.com/tictactoe -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/
Joe Clarke wrote:> The most useful thing to me about RJS is the ability to easily update > multiple div''s after an Ajax call. For example, in my svn management > control panel after a new repository is added I use RJS to update the > list of current repositories which is contained in a div. I also > update a div that shows a box detailing how to access the created > repository. Lastly, I hide the "Add" button if the user has reached > his limit on the number of allowed repositories. > > RJS allows me to put all these calls in a single, easy to read RJS > file named after the ajax action that is being called. If you are > going to use Ajax at all in your application, it is definitely worth > learning how to use RJS.Cool. Joe, where can I found a good documentation or book about RJS? Thanks in advance. Fernando Lujan
Your best bet on documentation is to google "rails rjs template" On Fri, 2006-05-05 at 13:21 -0300, Fernando Lujan wrote:> Joe Clarke wrote: > > The most useful thing to me about RJS is the ability to easily update > > multiple div''s after an Ajax call. For example, in my svn management > > control panel after a new repository is added I use RJS to update the > > list of current repositories which is contained in a div. I also > > update a div that shows a box detailing how to access the created > > repository. Lastly, I hide the "Add" button if the user has reached > > his limit on the number of allowed repositories. > > > > RJS allows me to put all these calls in a single, easy to read RJS > > file named after the ajax action that is being called. If you are > > going to use Ajax at all in your application, it is definitely worth > > learning how to use RJS. > > > Cool. Joe, where can I found a good documentation or book about RJS? > > Thanks in advance. > > Fernando Lujan > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060505/fd1c86e0/attachment.html