Hi,

I am not a JS expert, but it seems to me that your database address
point to your local disk "DBQ=C:\bdReg.mbd". When you submit your code
to gadget, you need to have a URL to your database. Think about
putting your database on your webserver  to be accessed over the
Internet.


Regards,


Parviz



On 1 Apr, 21:05, Patty <ptrc...@gmail.com> wrote:
> Hi, I have a gadget using JavaScript to read a database (Access or
> SqlServer) records and displays on screen, ie, only reads.
> When testing the JavaScript locally works fine, but when the code is
> passed to the gadget and test a security error at the instant of
> making the open of the database. (Access denied)
>
>         var conn_str = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\
> \bdReg.mdb";
>         var conn =  new ActiveXObject("ADODB.Connection");
>         conn.open(conn_str, "", "");  <-  Error....
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to Google-Gadgets-API@googlegroups.com
To unsubscribe from this group, send email to 
google-gadgets-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to