hw do I call a dlll function in javascript?

C

Charles Prince

Not had much to do with windows so am struggling a bit (lot) here.

Our server applications build a html form then send that form to the
clients browser. Standard stuff here.

Now I need to embed a 3rd party tool which presents the user with choices
and passes the results back to the caller. The authours assure me that
their tool is fully "DD" compliant so can be called by any other "DD"
compliant application.

So using javascript running in the cloient browser, I need to ba able to
load a client side dll in to the browser form and then call the dll'd
functions.

Can anyone tell me a simplistic method of loading a client side dll and
using it's functions please?

TIA.
 
V

Vincent van Beveren

Hi,

What is "'DD' compliant"?

Loading a client-side DLL is now allowed in JavaScript. If you are
talking about a plug-inn or a trusted active X component then
there might be hope.

Thanks,
Vincent
 
C

Charles Prince

Hi,

What is "'DD' compliant"?

Complies with Microsoft's dynamic data exchange interface which I am told
that they have based their active X technology on.
Loading a client-side DLL is now allowed in JavaScript. If you are
talking about a plug-inn or a trusted active X component then
there might be hope.

So given that I am completely new to this, how would I go about loading
the dll in order to use it's functions.

All documentation and references I have found to doing this are all
related to server side dll's but I want to integrate a client side dll.
Thanks,
Vincent

<snip>
 
V

Vincent van Beveren

Hi Charles,
Complies with Microsoft's dynamic data exchange interface which I am told
that they have based their active X technology on.

Oh, allrigthy
So given that I am completely new to this, how would I go about loading
the dll in order to use it's functions.

All documentation and references I have found to doing this are all
related to server side dll's but I want to integrate a client side dll.

Well, what you need to do is somehow load it with ActiveX:

myComp = new ActiveXObject("server.type","location");

See:
http://msdn.microsoft.com/library/en-us/script56/html/js56jsobjActiveXObject.asp
http://msdn.microsoft.com/library/en-us/script56/html/js56jsfctgetobject.asp

Then you can call it with myComp.myfunction(...) etc...

The following code shows the version of Excel installed on your
computer, notice the secutiry warning if you load it from a
website:

<script language="JavaScript">
try {
var XLApp = new ActiveXObject("Excel.Application");
alert(XLApp.Version);
} catch (e) {
alert("error: "+e.message);
}
</script>

Good luck,
Vincent
 
V

Vincent van Beveren

Some addition
The following code shows the version of Excel installed on your
computer, notice the secutiry warning if you load it from a
website:

I noticed that loading an untrusted activeX object only works
in one of the following ways:

- when you add that site to your trusted sites
(internet options -> security -> trusted sites
uncheck the 'https' thing and add your site)
- load it from a trusted HTML application (HTA)
- when the component itself is signed/trusted

Good luck,
Vincent
 
C

Charles Prince

Some addition


I noticed that loading an untrusted activeX object only works
in one of the following ways:

- when you add that site to your trusted sites
(internet options -> security -> trusted sites
uncheck the 'https' thing and add your site)
- load it from a trusted HTML application (HTA)
- when the component itself is signed/trusted

Good luck,
Vincent

Hey Vincent, I've been away for a couple of days so did not see your
replies.

Thanks for all the information, I'll give this a try and see if I get it
to work.

Again, thanks very much for you help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top