Hi Mustafa, you are running into the crossdomain policy trap. You can only access images and html etc from other domains, no xml and json.
You can solve this by adding a proxy Cheers kris Met vriendelijke groet, Kind regards, Kristiaan Geusebroek Consultant [cid:[email protected]][cid:[email protected]] Email: [email protected]<mailto:[email protected]> Tel: +31 (0)35 538 1921 Fax: +31 (0)35 538 1922 Mobiel: +31 (0)6 3069 7223 Utrechtseweg 49 1213 TL Hilversum The Netherlands http://www.xebia.com<http://www.xebia.com/> Xebia Blog: http://blog.xebia.com/ On Mar 13, 2011, at 4:01 PM, Mustafa646 wrote: hello all, By using code below, i can easily access features from geoserver installed at localhost, but when i installed geoserver at remote server (93.158.63.12), then it does't work. why? how can i fix this problem? wfs = new OpenLayers.Layer.Vector("Results", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://localhost:8080/geoserver/wfs", featureType: "NEW_ALL", featureNS: "http://www.openplans.org/TestSpace", srsName: "EPSG:900913", version: "1.1.0", extractAttributes: true, isBaseLayer: false, visibility: true }), ________________________________ View this message in context: GeoServer does not return features if installed remotely<http://osgeo-org.1803224.n2.nabble.com/GeoServer-does-not-return-features-if-installed-remotely-tp6166442p6166442.html> Sent from the OpenLayers Users mailing list archive<http://osgeo-org.1803224.n2.nabble.com/OpenLayers-Users-f1822463.html> at Nabble.com<http://Nabble.com>. _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.osgeo.org/mailman/listinfo/openlayers-users
<<inline: image005.jpg>>
<<inline: image006.png>>
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
