Changeset 6184
- Timestamp:
- 02/10/08 15:57:41 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Ajax.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Ajax.js
r5869 r6184 59 59 OpenLayers.loadURL = function(uri, params, caller, 60 60 onComplete, onFailure) { 61 62 if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(uri, "http")) {63 uri = OpenLayers.ProxyHost + encodeURIComponent(uri);64 }65 61 66 62 var success = (onComplete) ? OpenLayers.Function.bind(onComplete, caller) … … 288 284 OpenLayers.Ajax.Base.prototype.initialize.apply(this, [options]); 289 285 286 if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(uri, "http")) { 287 url = OpenLayers.ProxyHost + encodeURIComponent(url); 288 } 289 290 290 this.transport = OpenLayers.Ajax.getTransport(); 291 291 this.request(url);
