Add JavaScript verification code on a handler. If the event is being over-ridden, the verification code is called first. If it does not return a value of true, or if it fails, the Java event handler is not called.

This method can be used to reduct client-server trips by doing some of the verification on the client side before calling the event handler.

The arguments array can contain strings, Integers, Doubles, strings, bool, other Jaxcent HTML Elements (or "this"), or can be null. If the argument array is not null, the "verifier" must not contain the parentheses character. The characters "( )" containing any arguments are appended to the "verifier". The array specifies the list of parameters. If the argument array is null, the "verifier" is evaluated as is, as an expression. To call a function with no args, use the form addJavaScriptVerification( "click", "myCheckFunction()", null );

Namespace: Jaxcent.Web
Assembly: Jaxcent (in Jaxcent.dll) Version: (


 C#  Visual Basic  Visual C++ 
public void AddJavaScriptVerification(
	string eventName,
	string verifier,
	Object[] args
Public Sub AddJavaScriptVerification ( _
	eventName As String, _
	verifier As String, _
	args As Object() _
void AddJavaScriptVerification(
	String^ eventName, 
	String^ verifier, 
	array<Object^>^ args



See Also