[Mapbender-commits] r1006 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jan 16 06:04:12 EST 2007
Author: christoph
Date: 2007-01-16 06:04:12 -0500 (Tue, 16 Jan 2007)
New Revision: 1006
Modified:
trunk/mapbender/http/javascripts/map.php
Log:
removed obsolete wfs_init_functions
added js exception handling
Modified: trunk/mapbender/http/javascripts/map.php
===================================================================
--- trunk/mapbender/http/javascripts/map.php 2007-01-16 11:01:36 UTC (rev 1005)
+++ trunk/mapbender/http/javascripts/map.php 2007-01-16 11:04:12 UTC (rev 1006)
@@ -49,7 +49,6 @@
var mb_log = null;
var mb_MapRequestSubFunctions = new Array();
-var mb_WfsInitSubFunctions = new Array();
var mb_WfsReadSubFunctions = new Array();
var mb_WfsWriteSubFunctions = new Array();
var mb_MapRequestPreFunctions = new Array();
@@ -74,6 +73,10 @@
mb_trans.src = "../img/transparent.gif";
/*END OF GLOBALS*/
+function Mb_exception(message) {
+ mb_ajax_post('../php/mb_js_exception.php', {text:message});
+}
+
function mb_ajax_get(url, param, callback) {
try {
mb_ajaxWrap_get(url, param, callback);
@@ -117,9 +120,6 @@
function mb_registerSubFunctions(stringFunction){
mb_MapRequestSubFunctions[mb_MapRequestSubFunctions.length] = stringFunction;
}
-function mb_registerWfsInitSubFunctions(stringFunction){
- mb_WfsInitSubFunctions[mb_WfsInitSubFunctions.length] = stringFunction;
-}
function mb_registerWfsReadSubFunctions(stringFunction){
mb_WfsReadSubFunctions[mb_WfsReadSubFunctions.length] = stringFunction;
}
@@ -1299,12 +1299,6 @@
}
}
-function mb_execWfsInitSubFunctions() {
- for(var i=0; i<mb_WfsInitSubFunctions.length; i++){
- mb_WfsInitSubFunctions[i]();
- }
-}
-
function mb_execWfsReadSubFunctions(geom) {
for(var i=0; i<mb_WfsReadSubFunctions.length; i++){
mb_WfsReadSubFunctions[i](geom);
@@ -1344,4 +1338,4 @@
include($row_js["e_js_file"]);
}
}
-?>
+?>
\ No newline at end of file
More information about the Mapbender_commits
mailing list