var t = this; this.handleLoadObjects = function() { if (t.xmlHttp.readyState == 4 && t.xmlHttp.status == 200) { alert("ok"); } }