Cheers,
I have a form with an input inside that I want to be able to submit by
itself (I want to let the user create new tags with this input and use them
to tag the whole content that is posted by the rest of the form).
I have this layout:
<form ...>
<input type="text" id="new_tag" />
<%= link_to_remote "Schlüsselwort hinzufügen",:url => {
:action =>
"ajax_add_tag", .... }" %>
</form>
The ":with => "''tag='' +
$F(''new_tag'')" stuff like in observe_field does not
work and I cannot specify the tag like ":tag = XXX" because its value
is
unknown at render time. The user enters it so I have to use JavaScript like
with observe_field.
The problem is that link_to_remote does not accept JavaScript.
How do I solve this?
Thanks,
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de