[OpenLayers-Users] OpenLayers.Request problem; where is the data?

Eric Lemoine eric.c2c at gmail.com
Mon Nov 3 12:17:09 EST 2008


I was pointing Mika to the same thread. You beat on this one Arnd :-)
Thanks a lot for answering anyway. Cheers. Eric

2008/11/3, Arnd Wippermann <arnd.wippermann at web.de>:
> Perhaps this solves the problem
>
> headers: {
>         "Content-Type": "application/x-www-form-urlencoded"}
>
> http://n2.nabble.com/OpenLayers.Request-POST-and-IE-6-7-issues-tt1384863.htm
> l#a1395114
>
>
> Arnd Wippermann
>
>
> -----Ursprüngliche Nachricht-----
> Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
> Auftrag von Lehtonen, Mika
> Gesendet: Montag, 3. November 2008 10:01
> An: OpenLayers
> Betreff: [OpenLayers-Users] OpenLayers.Request problem; where is the data?
>
> Hi,
> I am trying to send a POST request from OL with the following snippet:
>
> new OpenLayers.Request.issue({method: 'POST', url:'sld.php',
> params:{abc:'def', cba:'fed'}, data:{ghi: 'jkl', ihg: 'lkj'},
> success: function(){alert('Succeeded!');}, failure:
> function(){alert('Did not succeed.');}, callback:
> function(){alert('Calling back');}});
>
> $_POST array in sld.php stays empty. In $_GET array I can find the
> params: def and fed. How can I get touch with the data? Am I doing something
> wrong here?
>
> - mika -
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>


More information about the Users mailing list