[OpenLayers-Users] OpenLayers.Ajax.Request 2.6 VS 2.5

Eric Lemoine eric.c2c at gmail.com
Tue Jun 3 13:58:42 EDT 2008


Hey. Try adding a question mark to the front of the query string. Hope
it'll do the trick..

2008/6/3, Zer <hcan at hotmail.com>:
>
> Hi All,
>
> In OL 2.5 the I had the OpenLayers.Ajax.Request like this working:
>
> function sendTestRequest(queryStr) {
>     var uri = "http://10.0.1.2:8080/demo/service/
>     var success = (onComplete) ?OpenLayers.Function.bind(onComplete, this)
>             : OpenLayers.nullHandler;
>
>     var failure = (onFailure) ? OpenLayers.Function.bind(onFailure, this)
>             : OpenLayers.nullHandler;
>     var request = new OpenLayers.Ajax.Request(uri,
>     					{	method: 'get',
>         					parameters: queryStr,
>         					contentType: 'text/xml',
>         					onComplete: success,
>         					onFailure: failure
>     					}
>             		);
> }
>
> Where queryStr is an ordinary URL querystring
> (request=GetFeature&version=1.0.0&typeName=topp:States&outputFormat=GML2&FILTER=...)
>
> This does not work in OL 2.6. The servlet that receives the request gets
> "null" as querystring. I tried the same code using OL 2.5 and it still works
> then. Anyone has a bug fix or work around?
>
> Thanks,
>
> -Z
> --
> View this message in context:
> http://www.nabble.com/OpenLayers.Ajax.Request-2.6-VS-2.5-tp17629265p17629265.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list