[OpenLayers-Users] OpenLayers.loadURL not working

Till Adams adams at terrestris.de
Fri Jul 10 07:07:10 EDT 2009


Simo,

is the WMS you are requesting from another server?

In this case, you should use the OL proxy-host to prevent from 
cross-scriptuing errors,

Till
> Hi list, I'm using this function "OpenLayers.loadURL(url, '', this,
> setResponse, setResponse);" to make an getFeatureInfo on geoserver. my url
> variable is:
> "var url =  map.layers[2].getFullRequestString(
> 			{
> 				REQUEST: "GetFeatureInfo",
> 				EXCEPTIONS: "application/vnd.ogc.se_xml",
> 				BBOX: map.getExtent().toBBOX(),
> 				X: e.xy.x,
> 				Y: e.xy.y,
> 				INFO_FORMAT: 'text/plain',
> 				QUERY_LAYERS: map.layers[2].params.LAYERS,
> 				FEATURE_COUNT: 1,
> 				srs: 'EPSG:900913',
> 				layers: 'layer',
> 				styles: '',
> 				WIDTH: map.size.w,
> 				HEIGHT: map.size.h
> 			},
> "
>
> The query returns an empty response (looking through firebug) but if I copy
> che address in the browser bar, the response is ok.
>
> Have you got any ideas?
> Thanks in avdance.
> Simone.
>   


-- 
----------------------------------------------------------
terrestris GmbH & Co. KG
Irmintrudisstrasse 17
53111 Bonn
Germany

Till Adams
Geschäftsführung

Tel: +49 (0)228 / 962 899-52
Fax: +49 (0)228 / 962 899-57
adams at terrestris.de http://www.terrestris.de
Amtsgericht Bonn, HRA 6835
---------------------------------------------------------

Komplementärin:

terrestris Verwaltungs GmbH

vertreten durch:
Hinrich Paulsen, Till Adams




More information about the Users mailing list