By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 2,191 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

JavaScript Interpreters/Engines?

P: n/a
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
Jan 16 '08 #1
Share this Question
Share on Google+
10 Replies


P: n/a
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
Jan 16 '08 #2

P: n/a
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
Jan 16 '08 #3

P: n/a
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...
Jan 16 '08 #4

P: n/a
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
capabilities 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.tech.js-engine

- newsgroup.
Jan 16 '08 #5

P: n/a
On Jan 16, 4:33 pm, Henry <rcornf...@raindrop.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
capabilities 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.tech.js-engine

- newsgroup.
Thank you very much guys!
Jan 16 '08 #6

P: n/a
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
http://www.mozilla.org/js/spidermonkey/
Jan 16 '08 #7

P: n/a

"MohsinHijazee" <mo***********@gmail.comwrote in message
news:01**********************************@i7g2000p rf.googlegroups.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

Jan 16 '08 #8

P: n/a
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 bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jan 16 '08 #9

P: n/a
On Jan 16, 9:35 am, Thomas 'PointedEars' Lahn <PointedE...@web.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?
[...]
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.

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

Peter
Jan 16 '08 #10

P: n/a
Peter Michaux wrote:
On Jan 16, 9:35 am, Thomas 'PointedEars' Lahn <PointedE...@web.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?
[...]
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>
Jan 16 '08 #11

This discussion thread is closed

Replies have been disabled for this discussion.