The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. The main methods, ajaxForm and ajaxSubmit, gather information from the form element to determine how to manage the submit process. Both of these methods support numerous options which allows you to have full control over how the data is submitted. Submitting a form with AJAX doesn't get any easier than this!
protected/extensionsSee the following code example:
$this->widget('ext.ajaxform.JAjaxForm',array( 'formId'=>'myForm1', 'options'=>array( 'dataType'=>'json', 'beforeSubmit'=>'js:function(formData,$form,options) { // return false to cancel submit }', 'success'=>'js:function(responseText,statusText) { alert(responseText); }', ), ));
Total 3 comments
i accept you :)
Hi,
after diggin 3 days through the framework and slowly getting better skills, I come to the point to get to know how useful you extension is... if you allow me, I will write a short wiki tutorial on how to build a link between gridview, form and your component;) might be useful to other newbies, to get to know how to implement dyn forms;)
Looking forward to your answer;)
Cheers Phil
simple and easy to used. thanks dude..
Leave a comment
Please login to leave your comment.