Call DLL Methods from Javascript

I want to call dll methods from javascript.

I followed this article Creating activex objects using C #

Since activeX only works in IE, how can I call these methods from javascript in FireFox or Chrome?

I already have an application that uses an ActiveX object to call Dll methods, but it only works in IE.

Is there any possible way to make my application browser independent?

UPDATED

I used Jquery async AJAX and webservice to call the dll methods:

var to_return = $.ajax({
         type: "POST",
         url: "Default.aspx/CallMe", //CallMe is WebService method
         data: "{}", // parameter to pass
         async: false,
         contentType: "application/json; charset=utf-8",
         dataType: "json",
     });

     alert(to_return.responseText);

If CallMe () returns a string, it warns about it as {"d": "True"} , where "True" is the string returned from CallMe.

How can I get only the returned string from it?

, CallMe() , DLL? JavaScript? ?

, .

+5
2

dll ( ).
, plugin

ActiveX - IE. .
, - JS, dll.

+2

- :

var obj = new ActiveXObject("ABCDll.testMethod");
var vResult = obj.TestMethod();
alert(vResult);

:: update::

answerer .

+3

All Articles