473,387 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Jan 16 '08 #1
10 1582
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
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
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
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
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
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

"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Frank | last post by:
Hey all, I can't seem to get javascript running in my XSL document. <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"...
31
by: manno | last post by:
Hi all, more or less just out of curiosity... I had a short 'discussion' about JavaScript in different borwsers. The other guy said that there's differeces in JavaScript accross browsers (I...
7
by: f1crazed | last post by:
Ok, The following html works wonderful in IE. It does not work in FireFox. Can someone please tell me the work around for FireFox to get this to work. HTML DOCUMENT: <html> <head>...
1
by: Safalra | last post by:
A long time ago when I used a browser that didn't support the shift or unshift methods of the array object, I came up with an implementation of queues that guaranteed amortised constant time...
1
by: Kwang Yul Seo | last post by:
Hi all, I am looking for JavaScript libraries based on JavaScript Core Library (http://www.webreference.com/javascript/reference/core_ref/ contents.html) without using client-side JavaScript. Is...
30
by: Jeff Bigham | last post by:
So, it appears that Javascript has a recursion limit of about 1000 levels on FF, maybe less/more on other browsers. Should such deep recursion then generally be avoided in Javascript?...
19
by: David Given | last post by:
I have a situation where I need to use GOTO in a Javascript program. No, I can't use break or continue. Yes, I really do know what I'm doing. What I've got is a huge mass of automatically...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
14
by: MartinRinehart | last post by:
I can load a dialog by loading an HTML page or by constructing the dialog with JavaScript. What should I be thinking about when I look at this choice?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.