Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data source on another domain error.

Status
Not open for further replies.

coffeemanuk

Programmer
Jul 4, 2003
1
AU
I'm getting this error:

This page is accessing a data source on another domain. Do you want to allow this?

(See the code attached) The issue is that the database, and the webserver are both on the same server hence I shouldn't be, 'theoretically', getting the 'another domain' error?

If I add the server name to my trusted sites list in IE the error vanishes, but I don't want to have to tell everyone who visits the page to set this... What can I do??

<START CODE>
...

<!-- OWC Data Source Component for getting at the data -->
<object id=ChartSpace1 classid=CLSID:0002E500-0000-0000-C000-000000000046 style=&quot;width:100%;height:350&quot;></object>
<object id=ADOConnection1 classid=CLSID:00000514-0000-0010-8000-00AA006D2EA4></object>

<script language=vbs>
Sub Window_OnLoad()
Dim rs, categories, values, categories2, values2
categories = &quot;&quot;
values = &quot;&quot;

' Open the connection and execute the query.
ADOConnection1.Open &quot;Driver={Microsoft Access Driver (*.mdb)};DBQ=S:\\Data\\SMATS_V1.3.mdb;&quot;

Set rs = ADOConnection1.Execute(&quot;SELECT * FROM View_Test_Chart&quot;)

...

<END CODE>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top