Passing form parameters with remote_function

Wes,

Did you try the :with option?

e.g

:onclick => remote_function( :url => {:action => :preview}, #:with => "'name_of_form_field'=value_you_want_and_javascript_is_legal" :with => "'patch[editing_rdoc]='+$('patch_modified_rdoc_source').value", :before => "$('preview_target').innerHTML='..loading..'", :failure => "$('preview_target').innerHTML='Ajax error!'", :update => 'preview_target' ) + ';return false;'

--Jinal

Wes Gamble wrote: