Menu

#9 errorHandler in taconite-client

open
nobody
None
5
2007-09-11
2007-09-11
Kris Pypen
No

taconite-client.js :

every time you call the errorHandler function you check if it exists:
if(errorHandler) {

errorHandler(self, exception);

}

but in the ajaxRequest function not:
if(ajaxRequest.getXMLHttpRequestObject().status != 200) {

errorHandler(self);

return;

}

so you have to change this to
if(ajaxRequest.getXMLHttpRequestObject().status != 200) {
if(errorHandler) {
errorHandler(self);
}
return;
}

Discussion


Log in to post a comment.