From d11ddfbb87e6a577034b5a4058721608fa020304 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 15 Aug 2006 14:11:58 +0000 Subject: [PATCH] Change OpenLayers.ProxyHost in Subversion to be null. This means that Ajax requests will 'just work' if the file is loaded locally (which was only the case before when using relative URLs). It also means that the examples better document how to set ProxyHost, since they no longer depend on an undocumented setting. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1216 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/LayerSwitcher.html | 1 + examples/georss.html | 15 ++++++++------- lib/OpenLayers/Ajax.js | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/examples/LayerSwitcher.html b/examples/LayerSwitcher.html index d66c45a7d5..e687993f75 100644 --- a/examples/LayerSwitcher.html +++ b/examples/LayerSwitcher.html @@ -18,6 +18,7 @@ var zoom = 5; var map, layer, glayer; + OpenLayers.ProxyHost = "/proxy/?url="; function init(){ map = new OpenLayers.Map( $('map') ); layer = new OpenLayers.Layer.WMS( "OpenLayers WMS", diff --git a/examples/georss.html b/examples/georss.html index fc1d083357..8a5ebb0c12 100644 --- a/examples/georss.html +++ b/examples/georss.html @@ -13,6 +13,7 @@ diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index f8a04b3df9..565cfe895d 100644 --- a/lib/OpenLayers/Ajax.js +++ b/lib/OpenLayers/Ajax.js @@ -2,7 +2,7 @@ * See http://svn.openlayers.org/trunk/openlayers/license.txt for the full * text of the license. */ -OpenLayers.ProxyHost = "/proxy/?url="; +OpenLayers.ProxyHost = ""; //OpenLayers.ProxyHost = "examples/proxy.cgi?url="; /** @@ -105,4 +105,4 @@ OpenLayers.parseXMLString = function(text) { ); return ajaxResponse; -}; \ No newline at end of file +};