diff options
author | No'am Rosenthal <noam.rosenthal@nokia.com> | 2009-11-08 11:57:13 -0800 |
---|---|---|
committer | No'am Rosenthal <noam.rosenthal@nokia.com> | 2009-11-08 11:57:13 -0800 |
commit | 0c22e48683495b5d483e6395ab013c1282ef2b48 (patch) | |
tree | d2560253ac855f5c9285ab48c6bc5d95bf2a8ee0 | |
parent | 752f94afe38280558bcc5ea8f60f7dd4b804169d (diff) |
alert on error
-rw-r--r-- | statechartz/statechartz.js | 3 |
1 files changed, 3 insertions, 0 deletions
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; |