Javascript ActiveXObject to an Access 2007 file

This is my asp page,when i carry it out, the system tell me:

Security settings on this computer prohibit access to data sources in other domains.

(Please forgive me for low level of English.) Thanks for your browsing.

<input name="" type="button" onclick="a()"/>
<script language="javascript">
function a(){
var conn=new ActiveXObject("ADODB.Connection");
conn.Open("databace/kaoshixitong.accdb; Driver={Microsoft Access Driver(*.accdb)}");
varsql= "select * from tk";
conn.execute(sql);
alert("jhg");
conn.colse();
    conn=null;
    }
</script>
0
edit delete
are you sure?
asked li zelin

0 answers

Post an answer but please login first

Post Answer
  1. Please login to post answer

Similar Questions

Tagsfor this question

Forumall questions