[OpenLayers-Users] OpenLayers.loadURL not working

ManuNea manunea at hotmail.com
Wed Jan 6 08:05:45 EST 2010


Hi,

i having same troubles. But recently, i use IE to try the page javascript
and found that it's work perfectly on IE. No data, in other hand, are
display under firefox.

I analyse network trafic and check that OpenLayer under firefox send and
receive data from my WMS Server, but those data are never accessible.

An idea ?
I'm using firefox 3.5.6, and IE 8.0.



Ivan Grcic-2 wrote:
> 
> On Sat, Jul 11, 2009 at 1:52 PM, Simo D <simone.dalmasso at gmail.com> wrote:
>>
>> Hi, the server is the same but on another port. I think it should work in
>> this way.
> Nope, it wont. You need a proxy.
> 
> Cheers
> 
> 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.
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
> 
> 
> 
> -- 
> Ivan Grcic
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 


Emmanuel REUTER
Centre Informatique de Recherche
Ingénieur "Réseaux non mutualisables"
INRETS  - 25, Avenue François Mitterrand - Case 24 - 69675 BRON CEDEX
Tél. : (+33) 04.72.14.25.54 (poste 25.54)
-- 
View this message in context: http://n2.nabble.com/OpenLayers-loadURL-not-working-tp3236300p4260519.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list