[Mapbender-commits] r3277 - branches/beck_dev/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 9 06:09:32 EST 2008


Author: beck
Date: 2008-12-09 06:09:32 -0500 (Tue, 09 Dec 2008)
New Revision: 3277

Added:
   branches/beck_dev/http/javascripts/mod_wmsByCookie.php
Log:


Added: branches/beck_dev/http/javascripts/mod_wmsByCookie.php
===================================================================
--- branches/beck_dev/http/javascripts/mod_wmsByCookie.php	                        (rev 0)
+++ branches/beck_dev/http/javascripts/mod_wmsByCookie.php	2008-12-09 11:09:32 UTC (rev 3277)
@@ -0,0 +1,42 @@
+<?php
+# $Id: mod_savewmc.php 264 2006-05-12 11:07:19Z vera_schulze 
+# http://www.mapbender.org/index.php/mod_savewmc.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.
+
+require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
+include(dirname(__FILE__) . "/../include/dyn_js.php");
+
+echo "mod_savewmc_target = '".$e_target[0]."';";
+?>
+
+mb_registerInitFunctions('triggerUnload()');
+
+function triggerUnload() {
+	if(ie) {
+		document.getElementById('body').onunload = function() {
+			var trigger = new Function ('','saveMapState()');
+			trigger(); 
+		};
+	}
+	else {
+		document.getElementById('body').setAttribute('onunload','saveMapState();');
+	}
+}
+
+function saveMapState() {
+	alert(0);
+}
\ No newline at end of file



More information about the Mapbender_commits mailing list