AD11
(AD)
1
I have a rjs with:
page.replace_html 'tag', '<input name="abc" id="abc" value="avalue">' +
link_to_remote("doit", :url =>{ :action => :doit })
how I read the value of the "abc" field in the :doit remote action
after the user click on the doit link?
Thanks
AD11
(AD)
2
The answer was to use prototype's $F() function which returns the
value of any field input control:
page.replace_html 'tag', '<input name="abc" id="abc" value="'+@tag+'">'
+ link_to_remote( "doit", :url =>{ :action => :doit }, :with =>
"'abc='+$F('abc')" )