M
mmq
Having spend a few days trying to track down this issue, I now hope for
assistance from other people.
I'm writing a simple AJAX control to enable file-upload using AJAX
technologi (and MS ADO).
The following javascript code is causing the issue:
var adoStream = new ActiveXObject("ADODB.Stream");
//adoStream.Mode = 1; // read only , 3 read write
adoStream.Type = 1; // adTypeBinary
adoStream.Open();
adoStream.LoadFromFile(filename); <--- THIS IS WHERE THE ERROR
OCCUR
When I run the javascript on my local computer it works fine, but when
downloaded from a remote-web site it fails with the error "Safety
settings on this computer prohibit accessing a data source on another
domain".
The remote server is in the Intranet Zone (added through security
settings), and "Access data sources across domains" is set to Enable in
Miscellaneous Security Settings.
No luck so far.
I'm on a Windows 2003 server running IE 6.0 SP1.
Any ideas very much appreciated. I cannot understand why it can be so
difficult to find out where the problem is :-(
assistance from other people.
I'm writing a simple AJAX control to enable file-upload using AJAX
technologi (and MS ADO).
The following javascript code is causing the issue:
var adoStream = new ActiveXObject("ADODB.Stream");
//adoStream.Mode = 1; // read only , 3 read write
adoStream.Type = 1; // adTypeBinary
adoStream.Open();
adoStream.LoadFromFile(filename); <--- THIS IS WHERE THE ERROR
OCCUR
When I run the javascript on my local computer it works fine, but when
downloaded from a remote-web site it fails with the error "Safety
settings on this computer prohibit accessing a data source on another
domain".
The remote server is in the Intranet Zone (added through security
settings), and "Access data sources across domains" is set to Enable in
Miscellaneous Security Settings.
No luck so far.
I'm on a Windows 2003 server running IE 6.0 SP1.
Any ideas very much appreciated. I cannot understand why it can be so
difficult to find out where the problem is :-(