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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 8 04:58:03 EDT 2007


Author: nimix
Date: 2007-10-08 04:58:03 -0400 (Mon, 08 Oct 2007)
New Revision: 1717

Modified:
   trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js
   trunk/mapbender/http/javascripts/mod_savewmc.php
Log:
remove references to deprecated ajax frame

Modified: trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js
===================================================================
--- trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js	2007-10-08 08:39:32 UTC (rev 1716)
+++ trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js	2007-10-08 08:58:03 UTC (rev 1717)
@@ -22,13 +22,13 @@
 
 function mb_ajaxWrap_get(url, param, callback) {
 //	window.frames['ajax'].$.ajaxSetup({async:false}); //TODO: find out why async doesn't work sometimes
-	window.frames['ajax'].$.get(url, param, callback);
+	$.get(url, param, callback);
 }
 function mb_ajaxWrap_post(url, param, callback) {
 //	window.frames['ajax'].$.ajaxSetup({async:false}); //TODO: find out why async doesn't work sometimes
-	window.frames['ajax'].$.post(url, param, callback);
+	$.post(url, param, callback);
 }
 function mb_ajaxWrap_json(url, param, callback) {
 //	window.frames['ajax'].$.ajaxSetup({async:false}); //TODO: find out why async doesn't work sometimes
-	window.frames['ajax'].$.getJSON(url, param, callback);
+	$.getJSON(url, param, callback);
 }
\ No newline at end of file

Modified: trunk/mapbender/http/javascripts/mod_savewmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.php	2007-10-08 08:39:32 UTC (rev 1716)
+++ trunk/mapbender/http/javascripts/mod_savewmc.php	2007-10-08 08:58:03 UTC (rev 1717)
@@ -62,8 +62,8 @@
 	var user = "<?php echo $_SESSION["mb_user_id"]; ?>";
 	var ind = getMapObjIndexByName(mod_savewmc_target);
 	var generalTitle = "session";
-	window.frames['ajax'].$.ajaxSetup({async:false}); //TODO: find out why async doesn't work sometimes
-	window.frames['ajax'].$.post("../php/mod_insertWmcIntoDb.php", {"saveInSession":1, "generalTitle":generalTitle, "mapObject":$.toJSON(mb_mapObj[ind])}, function (result, status) {
+	$.ajaxSetup({async:false}); //TODO: find out why async doesn't work sometimes
+	$.post("../php/mod_insertWmcIntoDb.php", {"saveInSession":1, "generalTitle":generalTitle, "mapObject":$.toJSON(mb_mapObj[ind])}, function (result, status) {
 	});
 }
 
@@ -77,8 +77,8 @@
 	else {
 		generalTitle = prompt("Save WMC as...");
 	}
-	window.frames['ajax'].$.ajaxSetup({async:false}); //TODO: find out why async doesn't work onunload
-	window.frames['ajax'].$.post("../php/mod_insertWmcIntoDb.php", {"saveInSession":0, "generalTitle":generalTitle, "mapObject":$.toJSON(mb_mapObj[ind])}, function (result, status) {
+	$.ajaxSetup({async:false}); //TODO: find out why async doesn't work onunload
+	$.post("../php/mod_insertWmcIntoDb.php", {"saveInSession":0, "generalTitle":generalTitle, "mapObject":$.toJSON(mb_mapObj[ind])}, function (result, status) {
 		alert(status + ": " + result);
 	});
 }
\ No newline at end of file



More information about the Mapbender_commits mailing list