what about doing this?
- Code: Select all
--- C:/Dokumente und Einstellungen/Daniel/Lokale Einstellungen/Temp/mainjs.js-revBASE.svn000.tmp.js Mon Dec 24 08:24:23 2007
+++ D:/xampp/roster.com/htdocs/js/mainjs.js Mon Dec 24 08:22:35 2007
@@ -431,6 +431,9 @@
{
// Unescape this to show the result XML in a popup for debugging.
// alert(req.responseText);
+ if ( req.responseXML == null ) {
+ alert(req.responseText.replace(/<\/?[^>]+>/gi, ''));
+ } else {
response = req.responseXML.documentElement;
cont = response.getElementsByTagName('cont')[0].firstChild.data;
result = response.getElementsByTagName('result')[0];
@@ -443,6 +446,7 @@
else
{
alert('Error '+status+': '+errmsg.firstChild.data);
+ }
}
}
else
This way we get a speaking error message on fatal errors in ajax scripts