posabsolute/jQuery-Validation-Engine — pull request #783 by jkapelner (2014-03-14 05:31:55+00:00)
Title: added asyncFuncCall - Validates a field using an asynchronous third party function

Validates a field using an asynchronous third party function call. This behaves similarly to funcCall, but the external function is an asynchronous function - it does not return anything. Instead it must call a callback with the validation result (true if success, false if failure) and an optional message to display. This allows you to validate anything asynchronously (i.e. call ajax, call some 3rd party library, use websockets, etc.)

```js
function checkHELLO(field, rules, i, options, callback){
setTimeout(function(){
if (field.val() === "HELLO") {
callback(true);
}
else {
var msg = options.allrules.validate2fields.alertText; // this allows to use i18 for the error msgs
callback(false, msg);
}
},2000);
}
```

The following declaration will do

```html

```