On Sat, Mar 12, 2011 at 4:15 PM, Mustafa646 <noorc...@gmail.com> 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 > }),
This is a question for the OpenLayers list. I'm not sure, but the problem may be the Same Origin Policy: http://en.wikipedia.org/wiki/Same_origin_policy http://docs.openlayers.org/library/request.html Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 333 8128928 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users