Validate

Inherits from:none (Validate is a root class)
  • Version: 1.0
  • Author: Brendan Dawes
  • Classpath: com.dragslidefade.Validate
  • File last modified: Tuesday, 27 September 2005, 09:26:15
Vaidates any number of form fields
Example:
var v:Validate = new Validate(this,"email,text2,text3");
v.checkForm();
// specify email in the text field name to do a check for @ and .

Summary

Constructor
Instance properties
Instance methods

Constructor

Validate

function Validate (
$target:MovieClip, $fields:String)
Parameters:
$target:
the movieclip containing the form fields
$fields:
a comma delimited list of the form fields

Instance properties

onError

onError:Function
Callback functions triggered on error and success

onSuccess

onSuccess:Function

Instance methods

checkForm

function checkForm (
)