[OpenLayers-Users] Further to openlayers, IE8 and local files.
Phil Scadden
p.scadden at gns.cri.nz
Thu Apr 15 21:49:35 EDT 2010
If I change XMLHttpRequest to
function cXMLHttpRequest() {
if (window.location.protocol == "file:") {
this._object = new
window.ActiveXObject('Microsoft.XMLHTTP');
} else {
this._object = oXMLHttpRequest ? new oXMLHttpRequest :
new window.ActiveXObject('Microsoft.XMLHTTP');
}
};
then the code works in IE8. (Obviously doesnt in FF - I am hoping
someone better in JS can fix this up).
The fix need to work for requests are going to both web and file (could
have layers from both). jQuery's structure seems good for this.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Users
mailing list