> 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".
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
-~----------~----~----~----~------~----~------~--~---