JavaScript Interpreters/Engines?

M

MohsinHijazee

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
 
M

morbidKK

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
 
M

MohsinHijazee

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
 
M

morbidKK

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...
 
H

Henry

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.tech.js-engine

- newsgroup.
 
T

Thomas 'PointedEars' Lahn

Doug said:
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
 
P

Peter Michaux

Doug said:
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
 
T

Thomas 'PointedEars' Lahn

Peter said:
Doug said:
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.

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
 

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

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
anuragag27

Latest Threads

Top