Displaying 1 result from an estimated 1 matches for "ajax_add_tag".
2005 Dec 09
0
How to use JavaScript in link_to_remote?
...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 i...