Remote Script document (reprinted from Microsoft) (eight) _ Long distance scripting
Source: Internet
Author: User
Documents: Calling object properties and methods
When you call a server method, the method does not return a single value. Instead, you create a call object that contains the return value and state information of the invoked procedure. The following table lists the properties of the calling object.
Attribute description
Id
The unique identification number of the call, which was generated when the first call was made.
Return_value
The return value of the method, if any.
Data
The rough data returned by the server is encapsulated in XML tags when a remote scripting call is generated. For more information, see Checking for errors.
Status
Indicates the value of the current state of the method invocation. Possible values include:
-1 failure
0 Complete
1 Hang Up
For more information, see Calling the Remote scripting method asynchronously.
Message
and call related text information. If the call succeeds, then the message contains the value "done." If it fails, then the message may contain the error text returned by the server or a standard error. For more information, see Checking for errors.
Callback
The text of the optional callback function specified in the call.
Error_callback
The optional error callback function text specified in the call.
Context
Tiaogan the context value passed. For more information, see Calling the Remote scripting method asynchronously.
The following table lists the methods that you can invoke for the calling object.
Method description
Wait to stop the currently executing client script until an asynchronous remote scripting call to the specified calling object completes.
Cancel stops a remote scripting call that is executing asynchronously.
For more information about calling objects, see synchronizing the remote scripting method and calling the remote scripting method asynchronously.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service