This page is no longer updated - please visit http://ghostwire.com Thank you!
 

« PHPObject »
An Opensource Alternative to Flash Remoting
Current Release
Readme
Notes
Journal
Archives

Notes
Friday April 25, 2003

Calling remote methods return either true or false

When you invoke a remote method, the return value is either 'true' (if the object connects to the server) or 'false' (if the object is busy). Obviously, this is not the same as the result from the server task; it only tells you whether you have successfully sent a request to the server. You can therefore do something like

if (myObj.doRemoteMethod(param1,param2)) {
    // request sent to server
    // do something constructive while waiting
} else {
    // request denied, object is busy
    // do something else
}
Currently, sending server tasks to the queue (see sequential invoking) returns 'true'. I may change this to 'pending' in future (not confirmed).

Posted by sunny at April 25, 2003 04:51 PM

 

Comments

 

Post a comment









Remember personal info?







Zones



Forums