Files
alfresco-community-repo/source/web/scripts/ajax.js
Gavin Cornwell 1c5f72db89 - AJAX framework now handles unauthenticated requests properly
- Removed JavaScript layer above dojo
- Minor updates following wiki writeup

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3331 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-07-17 12:01:48 +00:00

22 lines
456 B
JavaScript

//
// Alfresco AJAX support library
// Gavin Cornwell 14-07-2006
//
/**
* Default handler for errors
*/
function handleErrorDojo(type, errObj)
{
// remove the dojo prefix from the message
var errorStart = "XMLHttpTransport Error: 500 ";
var msg = errObj.message;
if (msg.indexOf(errorStart) != -1)
{
msg = msg.substring(errorStart.length);
}
// TODO: Show a nicer error page, an alert will do for now!
alert(msg);
}