[OpenLayers-Users] HTTPRequest example?
Arnd Wippermann
arnd.wippermann at web.de
Fri Mar 23 20:00:12 EDT 2007
Hello Rob,
i'm using OpenLayers.Ajax instead
var theUrl = "http://yourserver/something.asp";
var theParams = "REQUEST=Something";
theParams += "&STRING1=Others";
theParams += "&STRING2=Others";
var myAjax = new OpenLayers.Ajax.Request(
theUrl,
{
method: 'get',
parameters: theParams,
onComplete: showResponse,
onFailure: showResponseFailure
});
MfG
Arnd Wippermann
_____
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Bobby Braswell
Gesendet: Freitag, 23. März 2007 23:00
An: users at openlayers.org
Betreff: [OpenLayers-Users] HTTPRequest example?
Hi-
Could someone please post a link to a working example of the
OpenLayers.Layer.HTTPRequest() ? Sorry I can't find anything.
I'd like to make the "download data" button work on this map --
http://waage.sr.unh.edu/goo/landcover.html -- I have a CGI that will make a
cutout geotiff using WCS, but for some reason I can't figure out how to send
the request. Basically, what is the input "name" supposed to be?
OpenLayers.Layer.HTTPRequest(name, url, params, options)
Alternatively, is there a better method? I've seen use of OpenLayers.loadURL
but can't find that in the documentation. Should I just use a regular XML
HTTP get? I think I did that once :-)
Thanks,
Rob Braswell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070324/68a0f129/attachment.html
More information about the Users
mailing list