# remote function

**URL:** <https://discuss.rubyonrails.org/t/remote-function/18341>\
**Category:** rubyonrails-talk\
**Created:** [September 19, 2007, 2:54pm UTC](https://discuss.rubyonrails.org/t/remote-function/18341 "2007-09-19T14:54:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snaggy](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@Snaggy](https://discuss.rubyonrails.org/u/Snaggy)\
**Post date:** [September 19, 2007, 2:54pm UTC](https://discuss.rubyonrails.org/t/remote-function/18341/1 "2007-09-19T14:54:20Z")

</div>

I have a form to edit a page, with its nice save button. Since it's in textile I'm writing a preview button which renders the content to html and put it in a div.

But, how can I pass to the remote function the current content of the text area?

something like this

remote function( update =\> mydiv, ulr =\> (:action =\> textiler), arguments =\> (text =\> textarea.value) )

of course that doesn't work, just to make myself understood

bye thanks

---

<div class="post-metadata">

**Author:** ![Snaggy](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@Snaggy](https://discuss.rubyonrails.org/u/Snaggy)\
**Post date:** [September 20, 2007, 2:22pm UTC](https://discuss.rubyonrails.org/t/remote-function/18341/2 "2007-09-20T14:22:29Z")

</div>

great it works like a charm!

thanks
