[OpenLayers-Users] OpenLayers.loadURL not working
ManuNea
manunea at hotmail.com
Wed Jan 6 09:08:51 EST 2010
Hi,
all my layers are located onto the same WMS server. I'll try to find a way
with a proxy/server script in order to find if it could works properly.
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)
Barend Kobben wrote:
>
> This sounds very much like a JavaScript sandbox security problem.
> JavaScript
> (so also OpenLayers), is not allowed to fetch data from a domain other
> then
> where it originated from. So if you get a file with openlayers script from
> www.mysite.com and try to do a loadURL in it from www.somewherelse.com it
> will not work. IE has a setting to override this security (which in
> general
> is a bad idea), but FF hasn't .
>
> If this is your case, you'll need a proxy server/script (search fro that
> in
> the OpenLayers Docs).
>
> --
> Barend Köbben
> Senior Lecturer
> University of Twente, Faculty of Geo-Information Science and
> Earth Observation (ITC)
> PO Box 6, 7500AA Enschede, The Netherlands
> +31 (0)53 4874253
>
>
>
> On 06-01-10 14:05, "ManuNea" <manunea at hotmail.com> wrote:
>
>>
>>
>> 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.
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>
> Faculty of Geo-Information Science and Earth Observation (ITC)
> University of Twente
>
> E-mail disclaimer
> The information in this e-mail, including any attachments, is intended for
> the addressee only. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution or action in relation
> to the content of this information is strictly prohibited. If you have
> received this e-mail by mistake, please delete the message and any
> attachment and inform the sender by return e-mail. ITC accepts no
> liability for any error or omission in the message content or for damage
> of any kind that may arise as a result of e-mail transmission.
> _______________________________________________
> 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-tp3236300p4260805.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list