# What do you use RJS for?

**URL:** <https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655>\
**Category:** Rails\
**Created:** [May 5, 2006, 1:46am UTC](https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655 "2006-05-05T01:46:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 5, 2006, 1:46am UTC](https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655/1 "2006-05-05T01:46:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 5, 2006, 3:09am UTC](https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655/2 "2006-05-05T03:09:06Z")

</div>

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 C.

> **[RailsPlayground.com Ruby On Rails Hosting](https://railsplayground.com/)**
>
> Ruby on Rails Web Hosting starting at just $5/a month

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 5, 2006, 5:12am UTC](https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655/3 "2006-05-05T05:12:16Z")

</div>

On 5/4/06, Joe [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://destiney.com/tictactoe)

–  
Greg D.  
Zend Certified Engineer  
MySQL Core Certification  
[http://destiney.com/](http://destiney.com/)

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 5, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655/4 "2006-05-05T18:24:11Z")

</div>

Joe C. wrote:

> 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 L.

---

<div class="post-metadata">

**Author:** ![joe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9e5f3/32.png) [@joe](https://www.ruby-forum.com/u/joe)\
**Post date:** [May 5, 2006, 6:55pm UTC](https://www.ruby-forum.com/t/what-do-you-use-rjs-for/59655/5 "2006-05-05T18:55:02Z")

</div>

Your best bet on documentation is to google “rails rjs template”
