summaryrefslogtreecommitdiff
path: root/javascript/ajax.js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-27 18:27:53 +0100
committerAlib <aliboba@free.fr>2010-02-27 18:27:53 +0100
commit2429b586aeeb9d7eb7e77bdd932ce76e364bc8c5 (patch)
treecc0f580c7bce58923bf62cf03d8bd934566dce5f /javascript/ajax.js
parent3497a84b220e1419e3642faa763fb2b5965675b0 (diff)
downloadistreamdev-2429b586aeeb9d7eb7e77bdd932ce76e364bc8c5.tar.gz
istreamdev-2429b586aeeb9d7eb7e77bdd932ce76e364bc8c5.tar.bz2
new error handling
Diffstat (limited to 'javascript/ajax.js')
-rwxr-xr-xjavascript/ajax.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/javascript/ajax.js b/javascript/ajax.js
index 98006e6..a5a1b14 100755
--- a/javascript/ajax.js
+++ b/javascript/ajax.js
@@ -16,11 +16,13 @@ function alert_ajax(xhr, session)
{
var docXML= xhr.responseXML;
var streamstatus = null;
- var items = docXML.getElementsByTagName("streamstatus")
-
+ var items = docXML.getElementsByTagName("streamstatus");
streamstatus = items.item(0).firstChild.data;
+ var items2 = docXML.getElementsByTagName("message");
+ errmessage = items2.item(0).firstChild.data;
if ( streamstatus == 'error' )
- this.location.href = 'error.php';
+ //this.location.href = 'error.php';
+ errorMsg(errmessage);
else
swapPic(session);
}