All Projects → lichunqiang → yii2-ajaxform

lichunqiang / yii2-ajaxform

Licence: MIT license
submit ActiveForm via ajax

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to yii2-ajaxform

yii2-rest-rbac
yii2 rbac yii2 rest RBAC Auth manager for Yii2 RESTful(YII2权限管理rbac--rest接口方式)
Stars: ✭ 79 (+295%)
Mutual labels:  yii2, yii-extension
yii2-notification-wrapper
Yii2-notification-wrapper module renders a message from session flash (with ajax, pjax support and etc.) through Growl, Noty, Toastr and more libraries
Stars: ✭ 78 (+290%)
Mutual labels:  yii2, ajax
Yii2fullcalendar
JQuery Fullcalendar Yii2 Extension
Stars: ✭ 120 (+500%)
Mutual labels:  yii2, ajax
yii2-docker-app-advanced
Yii 2 Advanced Project Template under docker and docker-compose
Stars: ✭ 25 (+25%)
Mutual labels:  yii2
yii2-highcharts-widget
HighCharts Js Widget for Yii2
Stars: ✭ 40 (+100%)
Mutual labels:  yii2
yii2-cookiemonster
Yii extension to manage cookie warning
Stars: ✭ 16 (-20%)
Mutual labels:  yii2
yii2-dynamic-fields
Widget for display dynamic fields, adding and removing their using Pjax.
Stars: ✭ 52 (+160%)
Mutual labels:  yii2
host-webfonts-locally
OMGF automagically caches the Google Fonts used by your theme/plugins locally. No configuration (or brains) required!
Stars: ✭ 13 (-35%)
Mutual labels:  ajax
yii-fullajax
fullajax Yii playground
Stars: ✭ 21 (+5%)
Mutual labels:  ajax
ar-dynattribute
Provide ActiveRecord dynamic attributes stored into the single field in serialized state
Stars: ✭ 43 (+115%)
Mutual labels:  yii2
zwave-core
Flexible Z-Wave Service Server - Access your Z-Wave nodes fast and independent - Planned/supported: REST-API, Browser UI, MQTT* - Perfect for maintaining big node-numbers, drop-in ozwcp replacement!
Stars: ✭ 19 (-5%)
Mutual labels:  ajax
vue-methods-promise
Let Vue methods support return Promise
Stars: ✭ 35 (+75%)
Mutual labels:  ajax
rjax
base on rxjs awesome ajax library
Stars: ✭ 63 (+215%)
Mutual labels:  ajax
yii2-behaviors
Collection of useful behaviors for Yii Framework 2.0
Stars: ✭ 25 (+25%)
Mutual labels:  yii2
yii2-merit
Reputation engine for Yii2 用于实现积分,等级功能的设计
Stars: ✭ 16 (-20%)
Mutual labels:  yii2
yii2-manual-chm
Yii 2 Guide/API/Docs compiled in various formats
Stars: ✭ 63 (+215%)
Mutual labels:  yii2
filedb
ActiveRecord for static data definitions based on files
Stars: ✭ 72 (+260%)
Mutual labels:  yii2
yii2-ledap
yii2 for ledap
Stars: ✭ 20 (+0%)
Mutual labels:  yii2
menapro
CMS of 2017
Stars: ✭ 20 (+0%)
Mutual labels:  yii2
yii2-basic-firestarter
This is a pimped up basic yii2 template ❤️. It's a firestarter 🔥
Stars: ✭ 35 (+75%)
Mutual labels:  yii2

Yii2 Ajax Form


Build Status version Download Issues

Overview

Using jquery.form to make ActiveForm has ability to submit via ajax but not fullpage reload.

Install

Using composer:

$ composer require light/yii2-ajaxform=*

Usage

use light\widgets\ActiveForm;
use yii\web\JsExpression;

ActiveForm::begin([
	'ajaxSubmitOptions' => [
		'success' => new JsExpression('function(response) {console.log(response)}'),
		'complete' => new JsExpression('function() {console.log("request completed.")}')
	]
])

Options

  • Default enabled enableAjaxSubmit is true
  • ajaxSubmitOptions you can find in jquery.form

Test

$ phpunit

LICENSE

MIT

Bitdeli Badge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].