Index: lams_central/web/error.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/error.jsp,v
diff -u -r1.4 -r1.5
--- lams_central/web/error.jsp 13 Sep 2006 05:44:49 -0000 1.4
+++ lams_central/web/error.jsp 3 Jun 2008 02:35:51 -0000 1.5
@@ -12,6 +12,8 @@
<%-- Catch JSP Servlet Exception --%>
+<%-- The javascript method checkForErrorScreen in error.js is coded to match this page exactly.
+---- If you change this page, please change the javascript. --%>
<%
if (exception != null) {
%>
Index: lams_central/web/includes/javascript/error.js
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/error.js,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lams_central/web/includes/javascript/error.js 3 Jun 2008 02:35:44 -0000 1.1
@@ -0,0 +1,18 @@
+
+function checkForErrorScreen(baseErrorMessage, responseText) {
+ if ( responseText.indexOf('id=\"errorForm\"') > 0 ) {
+ var embeddedMessageIndex = responseText.indexOf('name=\"errorMessage\"');
+ if ( embeddedMessageIndex > 0 ) {
+ embeddedMessageIndex = responseText.indexOf('value=\"',embeddedMessageIndex);
+ if ( embeddedMessageIndex > 0 ) {
+ embeddedMessageIndex = embeddedMessageIndex + 7;
+ var endMessageIndex = responseText.indexOf('\"/>',embeddedMessageIndex);
+ if ( endMessageIndex > 0)
+ alert(baseErrorMessage+" "+responseText.substring(embeddedMessageIndex, endMessageIndex));
+ else
+ alert(baseErrorMessage+" "+responseText.substring(embeddedMessageIndex));
+ }
+ }
+ }
+}
+
Index: lams_monitoring/web/branching/chosenSelection.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_monitoring/web/branching/chosenSelection.jsp,v
diff -u -r1.6 -r1.7
--- lams_monitoring/web/branching/chosenSelection.jsp 26 May 2008 06:04:31 -0000 1.6
+++ lams_monitoring/web/branching/chosenSelection.jsp 3 Jun 2008 02:36:03 -0000 1.7
@@ -33,6 +33,8 @@