I cant seem to find a way to accomplish calling a function outside of an async handler unless i use a singleton and call the method using class.getInstance().method_name. I do not want to use a singleton though, i want to use a standard class. For instance, lets take this code:
var rpc = new qx.io.remote.Rpc; rpc.setUrl( "http://localhost/jsonrpc-server.php" ); rpc.setServiceName( "my.service.class" ); rpc.setTimeout( 30000 ); rpc.setCrossDomain( false ); rpc.callAsync( this.myhandler, "my_method", "arg1", "arg2" ); myhandler : function( result, ex, id ) { // Test the result and execute another method upon a certain condition if( result.answer == "just what i was looking for" ) this.alertItWorked(); // Throws error - this.alertItWorked is not a function alertItWorked(); // Throws error alertItWorked is not a function my.test.class.getInstance().alertItWorked(); // Works if the class is a singleton } alertItWorked : function() { alert( "it worked!" ); } How is this done? Ive also experimented with the event handlers and i have the same problem calling routines outside the handler function. How is this overcome in both situations? Thanks ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel