[Mapbender-commits] r1025 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jan 24 08:05:32 EST 2007


Author: christoph
Date: 2007-01-24 08:05:32 -0500 (Wed, 24 Jan 2007)
New Revision: 1025

Modified:
   trunk/mapbender/http/javascripts/map.php
Log:
added try..catch block for js exception handling

Modified: trunk/mapbender/http/javascripts/map.php
===================================================================
--- trunk/mapbender/http/javascripts/map.php	2007-01-24 13:04:13 UTC (rev 1024)
+++ trunk/mapbender/http/javascripts/map.php	2007-01-24 13:05:32 UTC (rev 1025)
@@ -74,7 +74,12 @@
 /*END OF GLOBALS*/
 	
 function Mb_exception(message) {
-	mb_ajax_post('../php/mb_js_exception.php', {text:message});
+	try {
+		mb_ajaxWrap_post('../php/mb_js_exception.php', {text:message});
+	}
+	catch(e) {
+		alert(e);
+	}
 }
 
 function mb_ajax_get(url, param, callback) {
@@ -82,7 +87,7 @@
 		mb_ajaxWrap_get(url, param, callback);
 	}
 	catch(e) {
-		alert(e);
+		alert('map.php: mb_ajax_get:'+e);
 	}
 }	
 
@@ -91,7 +96,7 @@
 		mb_ajaxWrap_post(url, param, callback);
 	}
 	catch(e) {
-		alert(e);
+		alert('map.php: mb_ajax_post:'+e);
 	}
 }	
 	



More information about the Mapbender_commits mailing list