calling a dll function in Javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cathryn Lindner

    calling a dll function in Javascript

    I am building a web application. On the form, I have a checkbox that
    needs to display a drop down list when checked. The drop down list is
    populated by a function in a dll that is registered in my project. How
    do I call this function in javascript?

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • W d'Anjos

    #2
    Re: calling a dll function in Javascript

    Cathryn,

    JavaScript can't (and shouldn't) call DLLs due to security issues.

    You should be looking for a server side solution, ie: ASP, JSP, PHP, CGI, etc.

    -Wagner

    Cathryn Lindner <cathrynl@dilig enz.com> wrote in message news:<3f9d3f31$ 0$195$75868355@ news.frii.net>. ..[color=blue]
    > I am building a web application. On the form, I have a checkbox that
    > needs to display a drop down list when checked. The drop down list is
    > populated by a function in a dll that is registered in my project. How
    > do I call this function in javascript?
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it![/color]

    Comment

    • Laurent Bugnion, GalaSoft

      #3
      Re: calling a dll function in Javascript

      Hi,

      W d'Anjos wrote:
      [color=blue]
      > Cathryn,
      >
      > JavaScript can't (and shouldn't) call DLLs due to security issues.[/color]

      JavaScript is just a language. It can (and should) do what the platform
      allows.

      Client-side JavaScript can very well instantiate ActiveX DLLs in
      platforms allowing it (IE) and in relaxed security environments. There
      is nothing wrong with that.

      Of course, if the OP was a bit more explicit about her environment, it
      would help. I suspect that she is talking about a server-side solution
      anyway, but it's hard to be sure.
      [color=blue]
      > You should be looking for a server side solution, ie: ASP, JSP, PHP, CGI, etc.
      >
      > -Wagner[/color]

      Maybe she already is. Don't accept "client-side" when you hear "JavaScript ".

      Because, yes, JavaScript is not only used on the client. It's also my
      language of choice on ASP.

      Laurent
      --
      Laurent Bugnion, GalaSoft
      Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
      Private/Malaysia: http://mypage.bluewin.ch/lbugnion
      Support children in Calcutta: http://www.calcutta-espoir.ch

      Comment

      • Mark Preston

        #4
        Re: calling a dll function in Javascript

        On Wed, 29 Oct 2003 10:52:31 +0100, "Laurent Bugnion, GalaSoft"
        <galasoft-LB@bluewin_NO_S PAM.ch> wrote:
        [color=blue]
        >W d'Anjos wrote:
        >[color=green]
        >> JavaScript can't (and shouldn't) call DLLs due to security issues.[/color]
        >
        >JavaScript is just a language. It can (and should) do what the platform
        >allows.
        >[/color]
        Which would be fine, except its platform is EXPLICITLY "any computer
        system using the Javascript process engine". In other words, it has to
        rely on an use NONE of the OS-specific or hardware-specific features
        of ANY particular system.

        Hence it cannot and SHOULD NOT be able to use a DLL under Windows.[color=blue]
        >
        >Client-side JavaScript can very well instantiate ActiveX DLLs in
        >platforms allowing it (IE) and in relaxed security environments. There
        >is nothing wrong with that.
        >[/color]
        That is a feature of the IE version of the Javascript engine. It
        happens also to be allowed on the Mozilla engine (whose name I can't
        recall offhand, but has something to do with monkeys) so is available
        in Netscape, Mozilla, Firebird and so on.

        Provided, of course, they are running on Windows. It is an ADDED
        feature and not a STANDARD feature - and indeed has been the cause of
        much argument during development since, strictly speaking, it should
        not be allowed but has very good uses for compatibility.

        Comment

        • Lasse Reichstein Nielsen

          #5
          Re: calling a dll function in Javascript

          Mark Preston <usenet@noemail address.co.uk> writes:
          [color=blue]
          > On Wed, 29 Oct 2003 10:52:31 +0100, "Laurent Bugnion, GalaSoft"
          > <galasoft-LB@bluewin_NO_S PAM.ch> wrote:[/color]
          [color=blue][color=green]
          > >JavaScript is just a language. It can (and should) do what the platform
          > >allows.[/color][/color]
          [color=blue]
          > Which would be fine, except its platform is EXPLICITLY "any computer
          > system using the Javascript process engine".[/color]

          *The* Javascript process engine?!?
          And where is this explicit quote from?

          Can you tell me what the name "Javascript " covers? Please be precise.

          (Me, I vote for "Javascript " meaning what Netscape Corp. says it
          means. All other implementations of ECMAScript+DOM are at best
          "Javascript compatible", only they won't call it that in front of an
          end user.)

          /L
          --
          Lasse Reichstein Nielsen - lrn@hotpop.com
          DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
          'Faith without judgement merely degrades the spirit divine.'

          Comment

          • Jim Ley

            #6
            Re: calling a dll function in Javascript

            On 29 Oct 2003 15:31:43 +0100, Lasse Reichstein Nielsen
            <lrn@hotpop.com > wrote:
            [color=blue]
            >(Me, I vote for "Javascript " meaning what Netscape Corp. says it
            >means.[/color]

            They're only licensees of the trademark though, and they are very
            careful to only use JavaScript. They also do not complain about uses
            of the word to describe other implementations (including microsoft
            support site often and I can't believe they'd let that one go)
            [color=blue]
            > All other implementations of ECMAScript+DOM are at best
            >"Javascript compatible", only they won't call it that in front of an
            >end user.[/color]

            I'd say javascript is any ECMAScript implementation - and
            implementations that preceeded it.

            Jim.
            --
            comp.lang.javas cript FAQ - http://jibbering.com/faq/

            Comment

            • Lasse Reichstein Nielsen

              #7
              Re: calling a dll function in Javascript

              jim@jibbering.c om (Jim Ley) writes:
              [color=blue]
              > I'd say javascript is any ECMAScript implementation - and
              > implementations that preceeded it.[/color]

              That is one, reasonable, definition.

              With that definition, there is nothing explicitly preventing a
              Javascript implementation from accessing Windows DLL files :)

              /L
              --
              Lasse Reichstein Nielsen - lrn@hotpop.com
              DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
              'Faith without judgement merely degrades the spirit divine.'

              Comment

              Working...