Adding cross-browser XMLHttpRequest functionality and convenience methods around it in the OpenLayers.Request namespace. Deprecating OpenLayers.Ajax.Request. Full support sync/async requests using all HTTP verbs now. r=elemoine (closes #1565)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -202,12 +202,10 @@ OpenLayers.Layer.MapGuide = OpenLayers.Class(OpenLayers.Layer.Grid, {
|
||||
getVisParams.mapName = this.params.mapName;
|
||||
getVisParams.format = 'text/xml';
|
||||
getVisParams = OpenLayers.Util.extend(getVisParams, params);
|
||||
|
||||
new OpenLayers.Ajax.Request(this.url,
|
||||
{ parameters: getVisParams,
|
||||
method: 'get',
|
||||
asynchronous: false //must be synchronous call to return control here
|
||||
});
|
||||
|
||||
OpenLayers.Request.GET({
|
||||
url: this.url, params: getVisParams, async: false
|
||||
});
|
||||
}
|
||||
|
||||
//construct the full URL
|
||||
|
||||
Reference in New Issue
Block a user