is there anyway to set the callback to the particular instance of the object that intiiated it?
here's my sample code class:
-------------
function MyClass() {}
MyClass.prototype.GetStuff = function()
{
var myAJAX = new AJAX();
myAJAX.sendBegin("somewebservice", "HandleGetStuff"); // this needs to be changed somehow
}
MyClass.prototype.HandleGetStuff = function(incoming)
{
// do stuff with incoming
}
--------------
later on in the code:
---------------
var myClass1 = new MyClass();
var myClass2 = new MyClass();
myClass1.GetStuff(); // should be handled by it's own HandleGetStuff
myClass2.GetStuff(); // ditto
here's my sample code class:
-------------
function MyClass() {}
MyClass.prototype.GetStuff = function()
{
var myAJAX = new AJAX();
myAJAX.sendBegin("somewebservice", "HandleGetStuff"); // this needs to be changed somehow
}
MyClass.prototype.HandleGetStuff = function(incoming)
{
// do stuff with incoming
}
--------------
later on in the code:
---------------
var myClass1 = new MyClass();
var myClass2 = new MyClass();
myClass1.GetStuff(); // should be handled by it's own HandleGetStuff
myClass2.GetStuff(); // ditto