Codes as below:
function updateCellIdx(oCell)
{
this.oCell = oCell;
}
updateCellIdx.prototype=
{
call: function()
{
ASPTest.Test( this.oCell.innerText, this.onReturn);
},
onReturn: function(rst)
{
if( rst.error != null)
{
this.oCell.bgColor = "#ff6600";
this.oCell.title = rst.error.Message;
return;
}
this.oCell.innerText = rst.value; // Problem: the property oCell
can't be found. how is 'this' object lost and different from the
original updateCellIdx object in call() function. How can I get the
original object?
}
};
var arrFunc = new Array();
function update(oCell) // oCell is a TD object
{
arrFunc.push( new updateCellIdx( oCell ));
arrFunc.pop().call();
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---