ajaxform Ajax Form

  1. Documentation
  2. Change Log

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!

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

See 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); }',
    ),
));

Change Log

February 3, 2010
  • Initial release.
7 1
7 followers
2 208 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Tags:
Developed by: jerry2801
Created on: Feb 3, 2010
Last updated: 13 years ago

Downloads

show all