search for: your_function_here

Displaying 1 result from an estimated 1 matches for "your_function_here".

2006 Jul 27
1
form_tag vs form_remote_tag ----- the :condition option
...ingamob called :condition. you give it a string which is then interpolated into the form tag in such a way that the form is only submitted if :condition evaluates in javascript to true. so the logical thing to do is give it a JavaScript function <%= form_remote_tag ( :condition => ''your_function_here()'', :url => {:action => ''your_action_here''} ) %> as you can see, it is nifty. but here''s the thing. form_tag **doesn''t** support this same useful feature as far as I can tell. am I wrong? is there a simple...