Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
// Execute SQL to fetch Account records
  var db = new ActiveXObject("ADODB.Connection");
  var rs = new ActiveXObject("ADODB.Recordset");
  var sum = 0;
  db.Open(DB_NAME);
  rs.Open(sql, db);


What I have tried:

This is a small app that retrieves data from MS Access database stored on my computer. The app only works in IE, I would like it to work with all major browsers
Posted
Updated 17-Apr-19 8:26am

DO NOT USE ACTIVEX. (Commonly referred to as "Active-Xcrement")

Only Microsoft browsers support it, and anyone with have a brain avoids using it because it's insecure.

There are too many examples of writing ADO code for an Asp.Net web site to have to use ActiveX.
 
Share this answer
 
v2
You don't have an alternative.

Accessing data from somewhere on the client machine is not going to work anywhere. It's a security risk (and why nobody supports ActiveX any more!) and is not allowed by any browser.

All record handling should be done by the server, not the client. The client is just used to display records and edit them. Once the record modifications are complete, the changed records should be sent back to the server to be written to the database or other backing storage.
 
Share this answer
 
Quote:
Cross-browser alternative needed for activexobject javascript

There is none, Activex have only been supported by MSIE. Activex is a major security risk.

You need to rethink moving ActiveX functionality to server side. Only this is cross-platform.
 
Share this answer
 
Thank you guys, I appreciate that. I have to rewrite the application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900