Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

calling dll from javascript

Posted on 2007-11-30
1
Medium Priority
?
849 Views
Last Modified: 2010-05-19
I have to call a dll from javascript.How I have to call that.Kindly help me in this.
the dll in iis server...

thanks
Mahesha M
0
Comment
Question by:annapolistech
1 Comment
 
LVL 25

Accepted Solution

by:
InteractiveMind earned 2000 total points
ID: 20381430
JavaScript cannot directly load a DLL, but you can do this indirectly, using ActiveX:

<script language="JavaScript">
try {
var yourComp = new ActiveXObject("server.type","location");
//...
yourCom.yourFunction(parameters here);
} catch (e) {
alert("error: "+e.message);
}
</script>

This may be of some help:
http://msdn2.microsoft.com/en-us/library/7sw4ddf8.aspx
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question