diff options
author | ivan <ivan> | 2005-11-04 11:31:19 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-11-04 11:31:19 +0000 |
commit | 92b2405b299bc60bc8bf6e594f7bd3f51645e124 (patch) | |
tree | 585ce976128b5ad1b99cec719df1cd2616d08893 /httemplate/elements/xmlhttp.html | |
parent | b0384b979bec6846b4ad1e339140f4877e9c2a9c (diff) |
apply patch from Scott Edwards to show mason errors received from XMLHTTP requests
Diffstat (limited to 'httemplate/elements/xmlhttp.html')
-rw-r--r-- | httemplate/elements/xmlhttp.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/httemplate/elements/xmlhttp.html b/httemplate/elements/xmlhttp.html index 1199b69be..4f4c5f53b 100644 --- a/httemplate/elements/xmlhttp.html +++ b/httemplate/elements/xmlhttp.html @@ -76,6 +76,15 @@ var data = xmlhttp.responseText; //alert('received response: ' + data); a[a.length-1](data); + if ( data.indexOf("<b>System error</b>") > -1 ) { + var w; + if ( w = window.open("about:blank") _ } + w.document.write(data); + } else { + // popup blocking? should use an overlib popup instead + alert("Error popup disabled; try disabling popup blocking to see"); + } + } } } |