<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi to everyone. <br>I'm new in the world of openlayers. I've been working with it for a few days, reading some documentation and specially using the examples found in the official page of openlayers. Everything fine until I tried to use this example: <br><br>http://openlayers.org/dev/examples/getfeatureinfo-popup.html<br><br>My project involves do something just like that, but when I use this example locally in my pc (downloaded and modified only in the url of openlayer script) the popups of the features aren't shown and I get this error code:<br><br>Error: uncaught exception: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://openlayers.org/api/OpenLayers.js Line: 1078"]<br>Archivo de origen: http://openlayers.org/api/OpenLayers.js<br>Línea: 225<br><br>This is the
code:<br><br>**********************************************************************************************************<br><html><br> <head><br> <title>GetFeatureInfo Popup</title><br> <script src="http://openlayers.org/api/OpenLayers.js"></script><br> <link rel="stylesheet" href="http://openlayers.org/theme/default/style.css" type="text/css" /><br> <link rel="stylesheet" href="style.css" type="text/css" /><br> <script><br> OpenLayers.ProxyHost = "proxy.cgi?url=";<br> <br> var map, info;<br> <br> function load() {<br> map = new OpenLayers.Map({<br> div:
"map",<br> maxExtent: new OpenLayers.Bounds(143.834,-43.648,148.479,-39.573)<br> });<br><br> var political = new OpenLayers.Layer.WMS("State Boundaries",<br> "http://demo.opengeo.org/geoserver/wms", <br> {'layers': 'topp:tasmania_state_boundaries', transparent: true, format: 'image/gif'},<br> {isBaseLayer: true}<br> );<br><br> var roads = new OpenLayers.Layer.WMS("Roads",<br> "http://demo.opengeo.org/geoserver/wms",
<br> {'layers': 'topp:tasmania_roads', transparent: true, format: 'image/gif'},<br> {isBaseLayer: false}<br> );<br><br> var cities = new OpenLayers.Layer.WMS("Cities",<br> "http://demo.opengeo.org/geoserver/wms", <br> {'layers': 'topp:tasmania_cities', transparent: true, format: 'image/gif'},<br> {isBaseLayer: false}<br> );<br><br> var water = new OpenLayers.Layer.WMS("Bodies of Water",<br>
"http://demo.opengeo.org/geoserver/wms", <br> {'layers': 'topp:tasmania_water_bodies', transparent: true, format: 'image/gif'},<br> {isBaseLayer: false}<br> );<br><br> var highlight = new OpenLayers.Layer.Vector("Highlighted Features", {<br> displayInLayerSwitcher: false, <br> isBaseLayer: false <br> });<br> <br> map.addLayers([political, roads, cities, water, highlight]); <br><br> info = new
OpenLayers.Control.WMSGetFeatureInfo({<br> url: 'http://demo.opengeo.org/geoserver/wms', <br> title: 'Identify features by clicking',<br> queryVisible: true,<br> eventListeners: {<br> getfeatureinfo: function(event) {<br> map.addPopup(new OpenLayers.Popup.FramedCloud(<br> "chicken",
<br> map.getLonLatFromPixel(event.xy),<br> null,<br> event.text,<br> null,<br> true<br>
));<br> }<br> }<br> });<br> map.addControl(info);<br> info.activate();<br><br> map.addControl(new OpenLayers.Control.LayerSwitcher());<br> map.zoomToMaxExtent();<br> }<br><br> </script><br> </head><br><br> <body onload="load()"><br> <h1 id="title">Feature Info in Popup</h1><br><br> <div id="tags"></div><br><br> <p id="shortdesc"><br> Demonstrates the WMSGetFeatureInfo control for
fetching information<br> about a position from WMS (via GetFeatureInfo request). Results<br> are displayed in a popup.<br> </p><br><br> <div id="map" class="smallmap"></div><br><br> <div id="docs"></div><br> </body><br></html><br>**********************************************************************************************************<br><br>Thanks to anyone who can help me. Bye<br></td></tr></table><br>
<hr size=1><br><font face="Verdana" size="-2">ˇObtén la mejor experiencia en la web!<br>Descarga gratis el nuevo Internet Explorer 8<br>
http://downloads.yahoo.com/ieak8/?l=e1</font>