Hi.
I need to do an Ajax call to populate a span-tag with some text from
the server-side. I’m using ‘link_to_remote’ but I need to fetch one of
the parameters in the call from a form field.
Initially I tried something like:
<%= link_to_remote ‘…’, :url => {:action => ‘some_action’, :id => ‘$
(some_form_field).value;’}, :update => ‘target_span’ %>
This will obviously not work.
But - is there an easy way to do this using the Rails helpers? I
suppose it would be possibly by writing some custom Javascript - but
I’m trying to avoid that.
Best Regards //Anders