Here's the skinny:
I have a contol-type class defined and I am creating instances within my code. Natch, the objects refer to themselves using the *this* keyword.
The trick is that my code is a front-end to a database server and I can only make asynchronous calls to said server. When the reply arrives, *this* no longer has any meaning.
I'vre found a workaround using a public object that stores the calling object's identity for use with the response, but it is most cumbersome. Okay, downright ugly.
I've not been abke to find a function/property/whatever that allows an object to know *who it is,* i.e. :
var obj = new classInstance;
Is there a way for the classInstance class object to determine that its instance name is *obj*?
I'll bet everyone scratches their head about this one, as in *what the heck is he talking about?* ;-)
Thanks for any help.
I have a contol-type class defined and I am creating instances within my code. Natch, the objects refer to themselves using the *this* keyword.
The trick is that my code is a front-end to a database server and I can only make asynchronous calls to said server. When the reply arrives, *this* no longer has any meaning.
I'vre found a workaround using a public object that stores the calling object's identity for use with the response, but it is most cumbersome. Okay, downright ugly.
I've not been abke to find a function/property/whatever that allows an object to know *who it is,* i.e. :
var obj = new classInstance;
Is there a way for the classInstance class object to determine that its instance name is *obj*?
I'll bet everyone scratches their head about this one, as in *what the heck is he talking about?* ;-)
Thanks for any help.