"Joe Hudson" <[EMAIL PROTECTED]> writes:
> I cant figure out how to access this in the event method of
> Rpc.callAsync
Ive looked at RPC_1-6 and cant seen any mention of this.
>
> rpc.callAsync(
> function(result, ex, id) {
> if (ex == null) {
> alert(this); // this isnt my class
> // how can I access my class?
> // I would like to call this._myMethod();
> }
> });
Nope, that one doesn't have a provision like addEventListener does, so you'll
have to use a closure:
var _this = this;
rpc.callAsync(
function(result, ex, id) {
if (ex == null) {
alert(_this);
}
});
Derrell
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel