# Is the append function at Enhancing\_RoRs\_AJAXUpdater now bui

**URL:** <https://www.ruby-forum.com/t/is-the-append-function-at-enhancing-rors-ajaxupdater-now-bui/75708>\
**Category:** Rails\
**Created:** [November 12, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/is-the-append-function-at-enhancing-rors-ajaxupdater-now-bui/75708 "2006-11-12T18:02:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [November 12, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/is-the-append-function-at-enhancing-rors-ajaxupdater-now-bui/75708/1 "2006-11-12T18:02:22Z")

</div>

Railsers:

I want to chat. I want my chatter to append chat to the end of a  
conversation, using a specialization of periodically\_call\_remote that  
appends its new content to the end of a span. I don’t want it to  
download the entire conversation once per update.

(BTW, surfing all these chatty blogs, written in Rails with Ajax,  
tends to put one of my IEs into multiple busy loops. I’l get back to  
y’all about that!)

This page sez Matt researched how to append instead of replace, and he  
offers it as a JS supplement:

[http://www.mattmccray.com/archive/2005/03/24/Enhancing\_RoRs\_AJAXUpdater](http://www.mattmccray.com/archive/2005/03/24/Enhancing_RoRs_AJAXUpdater)

My question is: Do I need to use that, or has that or similar  
functionality since been added to the Rails distribution?

Using Google CodeSearch on one of Matt’s important statements didn’t  
kick up anything…

–  
Phlip  
[http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [November 12, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/is-the-append-function-at-enhancing-rors-ajaxupdater-now-bui/75708/2 "2006-11-12T18:17:47Z")

</div>

I seem to recall that if you have :update =\>‘some\_div’ then you can say  
(for example) :position =\> :bottom for the html retrieved to be stuck at  
the bottom of said div (and you should also be able to use :after, :top  
etc…

Fred

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [November 12, 2006, 7:40pm UTC](https://www.ruby-forum.com/t/is-the-append-function-at-enhancing-rors-ajaxupdater-now-bui/75708/3 "2006-11-12T19:40:49Z")

</div>

Frederick C. wrote:

> :position =\> :bottom

Thanks - it works great!

For future reference, Googling for “append” doesn’t do much, and  
Googling for “bottom” is right out! 😉

–  
Phlip
