Click here to Skip to main content
14,269,407 members
Rate this:
Please Sign up or sign in to vote.
// 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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

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.
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

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.
   
Rate this:
Please Sign up or sign in to vote.

Solution 4

Thank you guys, I appreciate that. I have to rewrite the application.
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100