I am trying to pass the result from a javascript function along with the result from a text_field with form_remote_tag. This is what I have so far, but no go:
<% form_remote_tag(:url => {:controller => 'requests', :action => 'create'}, :with => "'data='+request()", :update => 'request_sent' ) do %> <%= text_field "request", "request" %><br/> <%= submit_tag 'Send Request' %> <% end %> I was able to get this to work with link_to_remote with the following code: <br/><%= link_to_remote 'Update availability', :url => {:action => "array"}, :with => "'data='+test()", :update => 'testing' %> where test() is the javascript function. This allows me to access the result of the test function in params[:data]. It seems that I should be able to do the same with form_remote_tag, but I have been unsuccessful. Maybe a syntax mistake? Maybe not possible? --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---