hw do I call a dlll function in javascript?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles Prince

    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.

  • Vincent van Beveren

    #2
    Re: hw do I call a dlll function in javascript?

    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:[color=blue]
    > 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.
    >[/color]

    Comment

    • Charles Prince

      #3
      Re: hw do I call a dlll function in javascript?

      On Wed, 23 Jun 2004 13:48:21 +0200, Vincent van Beveren wrote:
      [color=blue]
      > Hi,
      >
      > What is "'DD' compliant"?
      >[/color]

      Complies with Microsoft's dynamic data exchange interface which I am told
      that they have based their active X technology on.
      [color=blue]
      > 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.
      >[/color]

      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.
      [color=blue]
      > Thanks,
      > Vincent[/color]

      <snip>

      Comment

      • Vincent van Beveren

        #4
        Re: hw do I call a dlll function in javascript?

        Hi Charles,
        [color=blue]
        > Complies with Microsoft's dynamic data exchange interface which I am told
        > that they have based their active X technology on.[/color]

        Oh, allrigthy
        [color=blue][color=green]
        >>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.[/color]
        >
        > 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.[/color]

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

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

        See:
        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.

        Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


        Then you can call it with myComp.myfuncti on(...) 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="JavaS cript">
        try {
        var XLApp = new ActiveXObject(" Excel.Applicati on");
        alert(XLApp.Ver sion);
        } catch (e) {
        alert("error: "+e.message );
        }
        </script>

        Good luck,
        Vincent

        Comment

        • Vincent van Beveren

          #5
          Re: hw do I call a dlll function in javascript?

          Some addition
          [color=blue]
          >
          > The following code shows the version of Excel installed on your
          > computer, notice the secutiry warning if you load it from a
          > website:[/color]

          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




          Comment

          • Charles Prince

            #6
            Re: hw do I call a dlll function in javascript?

            On Thu, 24 Jun 2004 09:35:43 +0200, Vincent van Beveren wrote:
            [color=blue]
            > Some addition
            >[color=green]
            >>
            >> The following code shows the version of Excel installed on your
            >> computer, notice the secutiry warning if you load it from a
            >> website:[/color]
            >
            > 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[/color]

            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.

            Comment

            Working...