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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Dec 14 06:17:38 EST 2007


Author: christoph
Date: 2007-12-14 06:17:38 -0500 (Fri, 14 Dec 2007)
New Revision: 1924

Modified:
   trunk/mapbender/http/javascripts/mod_savewmc.php
Log:
jQuery is now in main frame

using jquery JSON methods

Modified: trunk/mapbender/http/javascripts/mod_savewmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_savewmc.php	2007-12-14 11:09:28 UTC (rev 1923)
+++ trunk/mapbender/http/javascripts/mod_savewmc.php	2007-12-14 11:17:38 UTC (rev 1924)
@@ -75,9 +75,9 @@
 	
 	var	extensionDataString = "";
 	if (currentWmcExtensionData != null) {
-		extensionDataString = currentWmcExtensionData.toJSONString();
+		extensionDataString = $.toJSON(currentWmcExtensionData);
 	}
 
-	window.frames['ajax'].$.ajaxSetup({async:false}); //TODO: find out why async doesn't work onunload
-	window.frames['ajax'].$.post("../php/mod_insertWmcIntoDb.php", {"saveInSession":saveInSession, "generalTitle":generalTitle, "extensionData":extensionDataString, "mapObject":mb_mapObj[ind].toJSONString()}, callbackFunction);
+	$.ajaxSetup({async:false}); //TODO: find out why async doesn't work onunload
+	$.post("../php/mod_insertWmcIntoDb.php", {"saveInSession":saveInSession, "generalTitle":generalTitle, "extensionData":extensionDataString, "mapObject":$.toJSON(mb_mapObj[ind])}, callbackFunction);
 }
\ No newline at end of file



More information about the Mapbender_commits mailing list