Hi, I need a way to read a form field and pass its contents as a parameter to a link_to_remote call. So let''s say I have a textarea input: <%= text_area ''course'', ''topics'', :rows => 6, :cols => 60 %> and later a link_to_remote: <%= link_to_remote("Hide", { :update => ''my div'', :url => {:action => ''hide_textarea'', :div => ''my_div, :course => @course } ) %> and I want to add the contents of the course_topics textarea as a field in my :url hash. Getting the form value with javascript should be possible, but how do I embed that into the ruby code? Thanks! -- Posted via http://www.ruby-forum.com/.
I actually have the very same question and have been trying to figure out a solution for the last hour. Any help would be appreciated. -- 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 -~----------~----~----~----~------~----~------~--~---
Apparently Analagous Threads
- Getting value of form using Ajax (and problems with Safari)
- Get value from form using rjs, and problem with Safari
- link_to_remote where the url contain a javascript variable
- Problem with ajax and textareas on firefox but works on IE
- Rich Text Editor and link_to_remote