JavaScript Interpreters/Engines?

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

    JavaScript Interpreters/Engines?

    Hello there!
    What if I want to give my desktop application some scripting
    capabilities by exposing the object model of it. How do we do that?
    Are their any JavaScript Execution Engines out their?

    Regards,
    Moshin
  • morbidKK

    #2
    Re: JavaScript Interpreters/Engines?

    On Jan 16, 11:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
    Hello there!
    What if I want to give my desktop application some scripting
    capabilities by exposing the object model of it. How do we do that?
    Are their any JavaScript Execution Engines out their?
    >
    Regards,
    Moshin
    If you want to build local desktop applicaitions.. microsoft have
    something called as HTAs : HTML Applications.. if you have idea about
    HTCs (HTML components).. you can build them right away using
    JavaScript

    My answer may not answer your question though please elaborate..what
    exactly you want to do
    Regards,
    Ketan

    Comment

    • MohsinHijazee

      #3
      Re: JavaScript Interpreters/Engines?

      On Jan 16, 11:53 am, morbidKK <ketan.khair... @gmail.comwrote :
      On Jan 16, 11:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
      >
      Hello there!
      What if I want to give my desktop application some scripting
      capabilities by exposing the object model of it. How do we do that?
      Are their any JavaScript Execution Engines out their?
      >
      Regards,
      Moshin
      >
      If you want to build local desktop applicaitions.. microsoft have
      something called as HTAs : HTML Applications.. if you have idea about
      HTCs (HTML components).. you can build them right away using
      JavaScript
      >
      My answer may not answer your question though please elaborate..what
      exactly you want to do
      Regards,
      Ketan
      I mean that some applications expose their object model to be consumed
      by clients. For example, Microsoft word itself exposes and object
      model which you can utilize to automate the tasks for your routine
      work. And for that, Visual Basic is the language. Suppose I have an
      application of my own in C++ and I expose the object model of it but I
      want that it should be programmable in JavaScript.
      Definately, for that I would need some execution engine that can
      execute the javascript. So is there any open source implementation out
      their?
      Not sure I conveyed what I am trying to say... But anyhow thank you
      very much for your response!

      Regards,
      Mohsin

      Comment

      • morbidKK

        #4
        Re: JavaScript Interpreters/Engines?

        On Jan 16, 11:59 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
        On Jan 16, 11:53 am, morbidKK <ketan.khair... @gmail.comwrote :
        >
        >
        >
        On Jan 16, 11:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
        >
        Hello there!
        What if I want to give my desktop application some scripting
        capabilities by exposing the object model of it. How do we do that?
        Are their any JavaScript Execution Engines out their?
        >
        Regards,
        Moshin
        >
        If you want to build local desktop applicaitions.. microsoft have
        something called as HTAs : HTML Applications.. if you have idea about
        HTCs (HTML components).. you can build them right away using
        JavaScript
        >
        My answer may not answer your question though please elaborate..what
        exactly you want to do
        Regards,
        Ketan
        >
        I mean that some applications expose their object model to be consumed
        by clients. For example, Microsoft word itself exposes and object
        model which you can utilize to automate the tasks for your routine
        work. And for that, Visual Basic is the language. Suppose I have an
        application of my own in C++ and I expose the object model of it but I
        want that it should be programmable in JavaScript.
        Definately, for that I would need some execution engine that can
        execute the javascript. So is there any open source implementation out
        their?
        Not sure I conveyed what I am trying to say... But anyhow thank you
        very much for your response!
        >
        Regards,
        Mohsin
        for java you can do that check out rhino project from mozilla...
        One more project is there called as Helma. check that also
        for c++ integration with these I have no idea...

        Comment

        • Henry

          #5
          Re: JavaScript Interpreters/Engines?

          On Jan 16, 7:09 am, morbidKK <ketan.khair... @gmail.comwrote :
          >>On Jan 16, 11:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
          >>>   What if I want to give my desktop application some scripting
          >>>capabiliti es by exposing the object model of it. How do we do that?
          <snip>
          for java you can do that check out rhino project from mozilla...
          One more project is there called as Helma. check that also
          for c++ integration with these I have no idea...
          The best place to ask the question would be the:-

          mozilla.dev.tec h.js-engine

          - newsgroup.

          Comment

          • MohsinHijazee

            #6
            Re: JavaScript Interpreters/Engines?

            On Jan 16, 4:33 pm, Henry <rcornf...@rain drop.co.ukwrote :
            On Jan 16, 7:09 am, morbidKK <ketan.khair... @gmail.comwrote :
            >
            >On Jan 16, 11:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
            >> What if I want to give my desktop application some scripting
            >>capabilitie s by exposing the object model of it. How do we do that?
            <snip>
            for java you can do that check out rhino project from mozilla...
            One more project is there called as Helma. check that also
            for c++ integration with these I have no idea...
            >
            The best place to ask the question would be the:-
            >
            mozilla.dev.tec h.js-engine
            >
            - newsgroup.
            Thank you very much guys!

            Comment

            • Doug Gunnoe

              #7
              Re: JavaScript Interpreters/Engines?

              On Jan 16, 12:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
              Hello there!
                 What if I want to give my desktop application some scripting
              capabilities by exposing the object model of it. How do we do that?
              Are their any JavaScript Execution Engines out their?
              >
              Regards,
              Moshin

              Comment

              • MikeB

                #8
                Re: JavaScript Interpreters/Engines?


                "MohsinHija zee" <mohsinhijazee@ gmail.comwrote in message
                news:01e7b037-e3d1-4aaf-b340-6ab32e980d7e@i7 g2000prf.google groups.com...
                On Jan 16, 11:53 am, morbidKK <ketan.khair... @gmail.comwrote :
                >On Jan 16, 11:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
                >>
                Hello there!
                What if I want to give my desktop application some scripting
                capabilities by exposing the object model of it. How do we do that?
                Are their any JavaScript Execution Engines out their?
                >>
                Regards,
                Moshin
                >>
                >If you want to build local desktop applicaitions.. microsoft have
                >something called as HTAs : HTML Applications.. if you have idea about
                >HTCs (HTML components).. you can build them right away using
                >JavaScript
                >>
                >My answer may not answer your question though please elaborate..what
                >exactly you want to do
                >Regards,
                >Ketan
                >
                I mean that some applications expose their object model to be consumed
                by clients. For example, Microsoft word itself exposes and object
                model which you can utilize to automate the tasks for your routine
                work. And for that, Visual Basic is the language. Suppose I have an
                application of my own in C++ and I expose the object model of it but I
                want that it should be programmable in JavaScript.
                Definately, for that I would need some execution engine that can
                execute the javascript. So is there any open source implementation out
                their?
                Not sure I conveyed what I am trying to say... But anyhow thank you
                very much for your response!
                Microsoft also has the MS Script Control, which will host VbScript / JScript
                (and supposedly any IActiveScript capable script Engine). It is an ActiveX
                component that Is pretty easy to work with.
                Regards,
                Mohsin

                Comment

                • Thomas 'PointedEars' Lahn

                  #9
                  Re: JavaScript Interpreters/Engines?

                  Doug Gunnoe wrote:
                  On Jan 16, 12:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
                  > What if I want to give my desktop application some scripting
                  >capabilities by exposing the object model of it. How do we do that?
                  >Are their any JavaScript Execution Engines out their?
                  >[...]
                  >
                  http://www.mozilla.org/js/spidermonkey/
                  Again, SpiderMonkey is a JavaScript engine. However, a JavaScript engine is
                  not what the OP is looking for because this is not about the programming
                  language but about APIs ("the object model"). Instead, they are looking for
                  an XUL or COM component.


                  PointedEars
                  --
                  var bugRiddenCrashP ronePieceOfJunk = (
                  navigator.userA gent.indexOf('M SIE 5') != -1
                  && navigator.userA gent.indexOf('M ac') != -1
                  ) // Plone, register_functi on.js:16

                  Comment

                  • Peter Michaux

                    #10
                    Re: JavaScript Interpreters/Engines?

                    On Jan 16, 9:35 am, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
                    wrote:
                    Doug Gunnoe wrote:
                    On Jan 16, 12:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
                    What if I want to give my desktop application some scripting
                    capabilities by exposing the object model of it. How do we do that?
                    Are their any JavaScript Execution Engines out their?
                    [...]
                    >>
                    Again, SpiderMonkey is a JavaScript engine. However, a JavaScript engine is
                    not what the OP is looking for because this is not about the programming
                    language but about APIs ("the object model"). Instead, they are looking for
                    an XUL or COM component.
                    >
                    I believe that spidermonkey can be used to do exactly what the OP
                    requests. That is what it does in Firefox, after all.

                    If the application is in Java than Mozilla's Rhino would be the
                    obvious choice.

                    Peter

                    Comment

                    • Thomas 'PointedEars' Lahn

                      #11
                      Re: JavaScript Interpreters/Engines?

                      Peter Michaux wrote:
                      On Jan 16, 9:35 am, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
                      wrote:
                      >Doug Gunnoe wrote:
                      >>On Jan 16, 12:49 am, MohsinHijazee <mohsinhija...@ gmail.comwrote:
                      >>> What if I want to give my desktop application some scripting
                      >>>capabiliti es by exposing the object model of it. How do we do that?
                      >>>Are their any JavaScript Execution Engines out their?
                      >>>[...]
                      >>http://www.mozilla.org/js/spidermonkey/
                      >Again, SpiderMonkey is a JavaScript engine. However, a JavaScript engine is
                      >not what the OP is looking for because this is not about the programming
                      >language but about APIs ("the object model"). Instead, they are looking for
                      >an XUL or COM component.
                      >
                      I believe that spidermonkey can be used to do exactly what the OP
                      requests. That is what it does in Firefox, after all.
                      I understood the OP that they want to expose the object model as an API to
                      other applications, not to the application itself.
                      If the application is in Java than Mozilla's Rhino would be the
                      obvious choice.
                      Iff internal scripting would be what is wanted. Only the OP can clarify this.


                      PointedEars
                      --
                      Use any version of Microsoft Frontpage to create your site.
                      (This won't prevent people from viewing your source, but no one
                      will want to steal it.)
                      -- from <http://www.vortex-webdesign.com/help/hidesource.htm>

                      Comment

                      Working...