# Passing a text area value with link\_to\_remote

**URL:** <https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239>\
**Category:** Rails\
**Created:** [June 2, 2008, 8:01am UTC](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239 "2008-06-02T08:01:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [June 2, 2008, 8:01am UTC](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239/1 "2008-06-02T08:01:27Z")

</div>

Hi  
I have a link\_to\_re,ote function as  
\<%= link\_to\_remote( “Select”,  
{:update=\>“div\_inside\_transfer\_reason#{div\_no}”,:url =\>{ :controller =\>  
‘popup’, :action =\>  
‘search\_primary\_group\_ui’,:flow\_item=\>flow\_item.flow\_item\_id,  
:sd\_ticket=\>sd\_ticket, :div\_no=\>div\_no}},:class =\> ‘itillink1’) %\>

And the textarea as  
\<%= text\_area\_tag “transfer\_reason”, nil, :size =\> “50x1” %\>

How can I pass the value of this text area with lnk\_to\_remote to action  
search\_primary\_group\_ui?I am not using any form in the file

Thanks in advance  
Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [June 2, 2008, 9:00am UTC](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239/2 "2008-06-02T09:00:57Z")

</div>

On Jun 2, 7:01 am, Sijo Kg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> How can I pass the value of this text area with lnk\_to\_remote to action  
> search\_primary\_group\_ui?I am not using any form in the file

I’ve got this all written up here:

> **[:with or :without you: link\_to\_remote's mysterious parameter - Space Vatican](https://www.spacevatican.org/2008/5/17/with-or-without-you-link_to_remote-s-mysterious-parameter/)**
>
> One of the nice things about Rails is that it makes it really easy to get off the ground with Ajax, thanks to the link\_to\_remote helper (and all the …

Fred

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [June 2, 2008, 9:40am UTC](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239/3 "2008-06-02T09:40:35Z")

</div>

Hi  
Thanks for your reply…It worked…  
:with =\>"$(‘transfer\_reason’).serialize()"  
Could you please tell me what is serialize here?What is the use of it?

Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [June 2, 2008, 9:53am UTC](https://www.ruby-forum.com/t/passing-a-text-area-value-with-link-to-remote/139239/4 "2008-06-02T09:53:23Z")

</div>

On Jun 2, 8:40 am, Sijo Kg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi  
> Thanks for your reply…It worked…  
> :with =\>“$(‘transfer\_reason’).serialize()”  
> Could you please tell me what is serialize here?What is the use of it?

I encourage you to experiment, but the short version is in the post I  
linked to before: it creates an appropriate bit of query string for  
the specified input element.

Fred
