A
Andrew Poulos
The following is only for IE running under Windows. Its a client
"requirement".
Anyhow, I'm connecting via a web page to a database. Both the page and
the database are on a LAN. The database has a DSN (as opposed to needing
a connection string). Everything appears to be working as expected
except that whenever there's any attempt at talking with the database
these two errors pop up:
"This website uses a data provider that may be unsafe. If you trust the
website, click OK, otherwise click Cancel."
"This website is using your identity to access a datasource. If you
trust this website, click OK to continue, otherwise click Cancel."
The javascript that talks with the database looks not unlike this:
var cnLocal = new ActiveXObject("ADODB.Connection");
cnLocal.Open(DSNdata);
var SQLstr = "SELECT "+info+" FROM "+pref;
var cnSel = cnLocal.Execute(SQLstr);
What can be done to suppress the errors as everything is on a LAN not
connected to the internet and so a very low security threat? (Ideally it
should not be something that has to be done to each computer that views
the web page.)
I tried (thinking wishfully) using this HTML tag instead
<object id="objID" scope="application" progid="ADODB.Connection"></object>
with
cnLocal = document.getElementById("objID");
and
cnLocal.Open(DSNdata);
var SQLstr = "SELECT "+info+" FROM "+pref;
var cnSel = cnLocal.Execute(SQLstr);
but it gives a object does not support this method error.
Andrew Poulos
"requirement".
Anyhow, I'm connecting via a web page to a database. Both the page and
the database are on a LAN. The database has a DSN (as opposed to needing
a connection string). Everything appears to be working as expected
except that whenever there's any attempt at talking with the database
these two errors pop up:
"This website uses a data provider that may be unsafe. If you trust the
website, click OK, otherwise click Cancel."
"This website is using your identity to access a datasource. If you
trust this website, click OK to continue, otherwise click Cancel."
The javascript that talks with the database looks not unlike this:
var cnLocal = new ActiveXObject("ADODB.Connection");
cnLocal.Open(DSNdata);
var SQLstr = "SELECT "+info+" FROM "+pref;
var cnSel = cnLocal.Execute(SQLstr);
What can be done to suppress the errors as everything is on a LAN not
connected to the internet and so a very low security threat? (Ideally it
should not be something that has to be done to each computer that views
the web page.)
I tried (thinking wishfully) using this HTML tag instead
<object id="objID" scope="application" progid="ADODB.Connection"></object>
with
cnLocal = document.getElementById("objID");
and
cnLocal.Open(DSNdata);
var SQLstr = "SELECT "+info+" FROM "+pref;
var cnSel = cnLocal.Execute(SQLstr);
but it gives a object does not support this method error.
Andrew Poulos