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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Jun 2, 7:01 am, Sijo Kg <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 >I''ve got this all written up here: http://www.spacevatican.org/2008/5/17/with-or-without-you-link_to_remote-s-mysterious-parameter Fred> Thanks in advance > Sijo > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
On Jun 2, 8:40 am, Sijo Kg <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---