From 0c22e48683495b5d483e6395ab013c1282ef2b48 Mon Sep 17 00:00:00 2001 From: No'am Rosenthal Date: Sun, 8 Nov 2009 11:57:13 -0800 Subject: alert on error --- statechartz/statechartz.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/statechartz/statechartz.js b/statechartz/statechartz.js index 464f3a6..56fc924 100644 --- a/statechartz/statechartz.js +++ b/statechartz/statechartz.js @@ -754,6 +754,9 @@ Statechartz = var href = link.getAttribute("href"); var xhttp=new XMLHttpRequest(); xhttp.open("GET",href); + xhttp.onerror = function(e) { + alert(e.message); + }; xhttp.onreadystatechange = function() { if (this.readyState == 4) { var xmlDoc=this.responseXML; -- cgit v1.2.3