Because your callback: "checkState(this.parentElement.ID, 'post')" is evaluated in a different context, where 'this' has a different meaning than it does where you're making the saveData call.
In this kind of situation, you can work around this as follows:
Code:
if (this.parentElement.frmCauseHumanFactorCode.valuesHaveChanged())
{
this.parentElement.frmCauseHumanFactorCode.saveData("checkState('"+this.parentElement.ID+"', 'post')");
}
Comment