On 8 Sep 2009, at 12:59, Ngassa Carine wrote:

>
>> I'll try writing a controller action.
>
> The idea with the controller action was really a good one.
> Now I can call the pythonscript without problem while clicking on a
> link, but it still cannot read from the form.
> How can I do this, or what should be written at the place of :msg =>
> "$('txt_message').value".

Read up about the :with option to link to remote (I wrote a bit about  
it a while ago: 
http://www.spacevatican.org/2008/5/17/with-or-without-you-link_to_remote-s-mysterious-parameter
 
  )

Fred

> This is what my code now looks like:
>
> <form id="frmmain" name="frmmain" method="post">
>  <input type="text" id="txt_message" name="txt_message" style="width:
> 400px;" value="test" />
>  <%=link_to_remote 'send', :url => { :action => 'sendmsg', :controller
> => 'contacts', :partner => @partner, :msg => "$ 
> ('txt_message').value" }
> %>
> </form>
>
> Carine
> -- 
> 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to