remote function

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

great it works like a charm!

thanks