Solved

calling dll from javascript

Posted on 2007-11-30
1
838 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 500 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now