What is the link on your browser when you open the example?<br><br>is it http:// ... or file:// ?<br><br>That message from IE is exactly the Cross Domain AJAX Request thing. You can set the Security config of IE to None also. I think that will solve the problem for IE.<br>
<br>Cheers<br><br><div class="gmail_quote">On Mon, Nov 16, 2009 at 5:20 PM, stash <span dir="ltr"><<a href="mailto:steffen.schwarz85@googlemail.com">steffen.schwarz85@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<br>
<br>
Andreas Hocevar-2 wrote:<br>
><br>
><br>
> Only if you provide more context:<br>
><br>
> * the code of the example you are trying to run<br>
> * the url you are accessing it through<br>
><br>
><br>
<br>
</div>Hello,<br>
yes I think this is the best idea to solve my problem. I use the following<br>
code. It's a wms (my base layer) with a background card and a wfs with some<br>
points located somewhere in denmark.<br>
<br>
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"><br>
<head><br>
<link rel="stylesheet" href="OpenLayers-2.8/theme/default/style.css"<br>
type="text/css" /><br>
<link rel="stylesheet" href="style.css" type="text/css" /><br>
<script src="OpenLayers-2.8/lib/OpenLayers.js"></script><br>
<script type="text/javascript"><br>
var map, layer;<br>
<br>
function init(){<br>
<div class="im"> OpenLayers.ProxyHost="/geoserver/rest/proxy?url=";<br>
<br>
</div> var max_Extent = new OpenLayers.Bounds(<br>
-198, -98.68117980957031,<br>
198, 92.30477600097656<br>
);<br>
<br>
var bounds = new OpenLayers.Bounds(<br>
1, 45,<br>
16, 60<br>
);<br>
<br>
var options = {<br>
controls: [],<br>
maxExtent: max_Extent,<br>
maxResolution: 0.5,<br>
projection: "EPSG:4326",<br>
units: 'degrees'<br>
<br>
};<br>
<br>
map = new OpenLayers.Map('map', options);<br>
<br>
<br>
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",<br>
"<a href="http://localhost:8080/geoserver/wms" target="_blank">http://localhost:8080/geoserver/wms</a>", {layers: 'topp:country'}<br>
);<br>
map.addLayer(layer);<br>
<br>
layer = new OpenLayers.Layer.WFS( "Owl Survey",<br>
"<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>",<br>
{typename: "topp:MY_GAZETTEER", maxfeatures: 10},<br>
{ featureClass: OpenLayers.Feature.WFS});<br>
map.addLayer(layer);<br>
map.addControl(new OpenLayers.Control.LayerSwitcher());<br>
<br>
map.zoomToExtent(bounds);<br>
}<br>
</script><br>
</head><br>
<body onload="init()"><br>
<h1 id="title">WFS Points</h1><br>
<p id='shortdesc'><br>
Using a Layer.WFS with a featureClass, one can take in XML data<br>
from a WFS class and display it any way you like.<br>
</p><br>
<div id="map" class="smallmap"></div><br>
</body><br>
</html><br>
<br>
The wms is working, the wfs not. My browser (Internet explorer) tells me an<br>
error at the xmlhttprequest (Access denied).<br>
<br>
Thanks for your help.<br>
<br>
Best regards<br>
stash<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n2.nabble.com/GeoServer-Proxy-Extension-OpenLayers-tp3998936p4014088.html" target="_blank">http://n2.nabble.com/GeoServer-Proxy-Extension-OpenLayers-tp3998936p4014088.html</a><br>
</font><div class="im">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>