Hi,

Mostly this line is your problem:
OpenLayers.ProxyHost = "proxy.cgi?url="; 

You need to use a proxy-script.

http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#ProxyHost

Arnd

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von eoinyp
Gesendet: Donnerstag, 11. März 2010 14:41
An: [email protected]
Betreff: [OpenLayers-Users] WMS GetFeatureInfo


Hi all,

I am trying to use GetFeatureInfo to display the properties of an object
when the user clicks on it. Exactly like in the demo given at:
http://openlayers.org/dev/examples/getfeatureinfo-popup.html
So for starters I copied the source code and tried to set the example up
locally.
But, it wont work when I set it up locally. I updated the openlayers.js
source to "<script
src="http://www.openlayers.org/api/OpenLayers.js";></script>"
I changed nothing else.
The map renders fine, but when I click, nothing happens. There is a
javascript error logged:

Message: Access is denied.

Line: 1078
Char: 46
Code: 0
URI: http://www.openlayers.org/api/OpenLayers.js

Im falling before the first hurdle here...  so frustrating!
Any ideas on how to at least get the example working properly so that I can
proceed?!
Thanks,

Eoin
--
View this message in context:
http://n2.nabble.com/WMS-GetFeatureInfo-tp4715952p4715952.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to