Hi, 2009/2/25 Gorka López Rivacoba <gorka.lopez.rivac...@gmail.com>: > I have an application an I want to load an external GML file. When I load it > from an internal file (like ".\file.gml") it's ok, but when I load from an > external file (like "C:\file.gml") there is an error: in this line: > > C:\DesarrolloTINSA\mfbase\openlayers\lib\OpenLayers\Request\XMLHttpRequest.js: > this._object.open(sMethod, sUrl, bAsync, sUser, sPassword); > > I don't have any problem with permissions, because it is for internal > porpouse. Is there any solution to this problem?
Although you think so, the browser sees a security problem here. See http://en.wikipedia.org/wiki/Same_origin_policy for more details. Are you planning to go online with your application? If this is designed to run off disk, you should use corect file urls, like this: file:///C:/file.gml Regards, Andreas. -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev