search for: sendform

Displaying 2 results from an estimated 2 matches for "sendform".

Did you mean: sendfor
2005 Dec 13
2
Ajax.Request onComplete
...ered_id); *if* (!edit_form || !rendered_node) { this.enabled = *false*; } *else* { *// getting the action value* this.form_action = edit_form.action; this.edit_form = edit_form; this.rendered_node = rendered_node; this.enabled = *true*; } }, sendForm: *function*() { *// let''s serialize the content of the form* *// and send it to the server* *var* myAjax = *new* Ajax.Request(this.form_action, { parameters: Form.serialize(this.edit_form), onComplete: this.sendFormCompleted}); }, sendFormCompleted: *function...
2006 Apr 21
4
link_to_function with submit
I looked everywhere but couldn''t find it. I don''t want a submit_tag or image_submit_tag but a normal link that submits my form. Normally I would do this with a javascript like function sendForm () { document.forms[0].submit(); } but this doesn''t work with form_remote_tag link_to_function( ''Send'' , "sendform();") So the question is: how do I send my ajax form? Thanks in advance Peet -- Posted via http://www.ruby-forum.com/.