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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 25 09:20:26 EST 2007


Author: christoph
Date: 2007-01-25 09:20:26 -0500 (Thu, 25 Jan 2007)
New Revision: 1052

Added:
   trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js
Log:
ajax wrapper function called in map.php

Added: trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js
===================================================================
--- trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js	2007-01-25 14:17:08 UTC (rev 1051)
+++ trunk/mapbender/http/javascripts/mb_ajaxWrapper_jQuery.js	2007-01-25 14:20:26 UTC (rev 1052)
@@ -0,0 +1,28 @@
+<?php
+# $Id: map.php 736 2006-08-03 12:40:12Z christoph $
+# http://www.mapbender.org/index.php/Map.php
+# Copyright (C) 2002 CCGIS
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+?>
+
+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);
+}
+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);
+}
\ No newline at end of file



More information about the Mapbender_commits mailing list