[Mapbender-commits] r1191 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 6 03:55:42 EST 2007
Author: christoph
Date: 2007-03-06 03:55:42 -0500 (Tue, 06 Mar 2007)
New Revision: 1191
Modified:
trunk/mapbender/http/javascripts/map.php
trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js
Log:
added _json function for ajax
Modified: trunk/mapbender/http/javascripts/map.php
===================================================================
--- trunk/mapbender/http/javascripts/map.php 2007-03-06 08:54:49 UTC (rev 1190)
+++ trunk/mapbender/http/javascripts/map.php 2007-03-06 08:55:42 UTC (rev 1191)
@@ -100,6 +100,15 @@
}
}
+function mb_ajax_json(url, param, callback) {
+ try {
+ mb_ajaxWrap_json(url, param, callback);
+ }
+ catch(e) {
+ alert('map.php: mb_ajax_post_json:'+e);
+ }
+}
+
function init(){
for(var i=0; i<mb_InitFunctions.length; i++){
eval(mb_InitFunctions[i]);
Modified: trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js
===================================================================
--- trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js 2007-03-06 08:54:49 UTC (rev 1190)
+++ trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js 2007-03-06 08:55:42 UTC (rev 1191)
@@ -25,4 +25,8 @@
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);
+}
+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);
}
\ No newline at end of file
More information about the Mapbender_commits
mailing list