Section 25.184. JSObject.call( ): invoke a method of a JavaScript object


25.184. JSObject.call( ): invoke a method of a JavaScript object

Java method in Java plug-in

25.184.1. Synopsis

 public Object call(String methodName, Object args[]) 

25.184.1.1. Arguments

methodName

The name of the JavaScript method to be invoked.


args[]

An array of Java objects to be passed as arguments to the method.

25.184.1.2. Returns

A Java object that represents the return value of the JavaScript method.

25.184.2. Description

The call( ) method of the Java JSObject class invokes a named method of the JavaScript object represented by the JSObject. Arguments are passed to the method as an array of Java objects, and the return value of the JavaScript method is returned as a Java object.

Chapter 23 describes the data conversion of the method arguments from Java objects to JavaScript values, and the method return value from a JavaScript value to a Java object.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net