Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
b6071007
Commit
b6071007
authored
Jul 30, 2014
by
Alex-Code
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update input-validation.md
Updated guide
parent
3a10c4cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
input-validation.md
docs/guide/input-validation.md
+3
-2
No files found.
docs/guide/input-validation.md
View file @
b6071007
...
...
@@ -580,11 +580,12 @@ deferred.push($.get("/check", {value: value}).done(function(data) {
The
```deferred```
array also has a shortcut method
```add```
.
```
deferred.add(function() {
deferred.add(function(
def
) {
//Asynchronous Validation here
//The context of this function is the Deferred object where resolve can be called.
//The context of this function
and the first argument
is the Deferred object where resolve can be called.
});
```
> Note: `resolve` must be called on any deferred objects after the attribute has been validated or the main form validation will not complete.
### Ajax validation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment