Hi,
I have a method in a class that calls a server function via RPC, and specifies a callback of “this.myCallbackFunction()”. It calls back into my class function, but “this” now refers to something other than the object that placed the server call. I think I understand why this has happened - the server is just handed a function to call on return, it knows nothing of my attempts to work in an OO fashion, and so it isn’t really calling a method in a class at all - it’s just running some code.
If this is indeed the case, is there anything I can do about it? Is there maybe a way that I can pass the “this” reference up to the server so it can send it back to me? If not, does this mean that any attempt to do OO in C/S Javascript is pretty much doomed, or is there something else I can do?
Thanks,
Wayne