[freeside-commits] freeside/httemplate/elements xmlhttp.html, 1.3, 1.4

Ivan,,, ivan at wavetail.420.am
Fri Nov 4 03:31:21 PST 2005


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail:/tmp/cvs-serv19673/httemplate/elements

Modified Files:
	xmlhttp.html 
Log Message:
apply patch from Scott Edwards to show mason errors received from XMLHTTP requests

Index: xmlhttp.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/xmlhttp.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- xmlhttp.html	24 Oct 2005 11:56:35 -0000	1.3
+++ xmlhttp.html	4 Nov 2005 11:31:19 -0000	1.4
@@ -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");
+                }
+              }
             }
         }
 



More information about the freeside-commits mailing list