[OpenLayers-Users] problem with setting projections

Ian Turton ijturton at gmail.com
Fri Nov 21 16:41:25 EST 2008


2008/11/21 kuba <rojekk at gmail.com>:
> thanks it worked. Sometimes the most easiest Solutions come the last. But i
> have the problem  that i had when i was checking out GetInfo Example. When i
> wanna get info about the polygon i got following error:
>
> Access to restricted URI denied" code: "1012
> [Break on this error] this._object.open(sMethod, sUrl, bAsync, sUser,
> sPassword);
> what do I have to change to make it run smoothly. I have just copied the
> code of preview site to my own  html file. Everything works except the get
> info table. The is something wrong with
>
>  OpenLayers.loadURL("http://localhost:8080/geoserver/wms", params, this,
> setHTML, setHTML);
>

You need a proxy if your  page is served from a different machine (or
just url) than your WMS - see
http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost

Ian



More information about the Users mailing list