Thanks Andreas and Toni for your help, In my case (rare case), the server page is in a server computer and it has to read a gml file that is in client computer. This applicattion only has to run in Internet Explorer. This is very risky in a normal applications, but in my case, it is for internal porpouse and I could add all the permissions I want in the client.
Adding the web in Internet Explorer trusted sites, adding permissions to "Initialize and generate scripts to ActiveX controls not marked as safe" and loading the gml file like (gmlDoc = "file:///c:/demo.gml"): function loadParams(gmlDoc){ if (document.implementation && document.implementation.createDocument){ xmlDoc = document.implementation.createDocument("", "", null); xmlDoc.onload = readParams; } else if (window.ActiveXObject){ xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = false; xmlDoc.onreadystatechange = function () { if (xmlDoc.readyState == 4) readParams() }; } else{ alert('This script is not supported by your browser'); return; } xmlDoc.load(gmlDoc); } I know this is not a normal case, but although it is not the better solution, I could resolve my problem with permissions. Thanks for your responses. Best regards, Gorka López 2009/2/25 toni hernández <tonidelaca...@gmail.com> > hi, > the path to the file can be relative (./file or > ../route_to_folder/file.gml) to the path or your html file or a http > protocol (the whole route htp://yourserverdomain/route_to_file/file.gml) > . > > > 2009/2/25 Gorka López Rivacoba <gorka.lopez.rivac...@gmail.com> > >> Hello, >> >> 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? >> >> Thanks. Best regards, >> >> Gorka López >> >> _______________________________________________ >> Dev mailing list >> Dev@openlayers.org >> http://openlayers.org/mailman/listinfo/dev >> >> >
_______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev