[OpenLayers-Users] OpenLayers.loadURL not working

Simo D simone.dalmasso at gmail.com
Sat Jul 11 08:52:59 EDT 2009


Hi, the server is the same but on another port. I think it should work in
this way. I use firebug and I inspected all the code with brakepoints but I
get no errors. In the page that I build is also present ext.js but I don't
use id to do the ajax request. On the server side the application runs under
django but also this shouldn't be an issue. Analysing the server response I
see that is correct (200 status code) but empty.
It's strange because on other applications it works fine. 

Thanks.
Simone.


Till Adams wrote:
> 
> 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
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/OpenLayers.loadURL-not-working-tp3236300p3242326.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list