473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

hw do I call a dlll function in javascript?

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.

Jul 23 '05 #1
5 5351
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

Charles Prince wrote:
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.


Jul 23 '05 #2
On Wed, 23 Jun 2004 13:48:21 +0200, Vincent van Beveren wrote:
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>

Jul 23 '05 #3
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
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.


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...iveXObject.asp
http://msdn.microsoft.com/library/en...tgetobject.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

Jul 23 '05 #4
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


Jul 23 '05 #5
On Thu, 24 Jun 2004 09:35:43 +0200, Vincent van Beveren wrote:
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


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.
Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: chirs | last post by:
I am trying to understand a piece of code. In a javascrpit file, there is a function: function ItemStyle(){ var names=; addProps(this,arguments,names,true); }; In the html file, it calls...
5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
1
by: cheezebeetle | last post by:
ok, so I am having problems passing in an ASPX function into the Javascript in the codebehind page. I am simply using a confirm call which when they press "OK" they call this ASPX function, when...
3
by: JoeK | last post by:
Hey all, I am automating a web page from Visual Foxpro. I can control all the textboxes, radio buttons, and command buttons using syntax such as: ...
39
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
2
by: Al | last post by:
Could anybody point me to some resource about how to call a VB.net DLL in VC.net? Thanks in advance. Al
18
by: Chris Ianson | last post by:
Hi geniuses (or is that genii, or genies) The challenge is as above really. I have a page with an iframe in it, and need to call a JS function in the *parent* page, *from* inside the iframe. ...
3
by: KaNos | last post by:
Hi, "robot script pages" are html+javascript pages, can be played in aspx player. So in this tech, robot call aspx player's function (an interface is sheared) and wait a result synchronously with...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.