469,315 Members | 1,573 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

C++ codes in javascript

Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?

Thanks

May 24 '07 #1
13 9033
wrote on 24 mei 2007 in comp.lang.javascript:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?
In a browser?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 24 '07 #2
Yeah. Is there any other way to run javascripts except in browsers?
PS I am kind of new to javascripts.
On May 24, 7:04 am, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
wrote on 24 mei 2007 in comp.lang.javascript:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?

In a browser?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

May 24 '07 #3
On Thu, 24 May 2007 07:01:02 -0700, nihad.nasim wrote:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?
The simple answer is no. That would violate the browser security model.

I'm sure there's some ActiveX thing you could do to allow for running
local programs... but it would have to be set up on every client you
intend to let use the app.
May 24 '07 #4
I do not intend to put the script on the web. Its for my own use and
will be run only on my computer. If you google "c++ in javascripts",
you will find that the first result does say that you can do so but I
am not that sure on how to do so. Thats why I am asking you guys for
help in this matter.

Thanks

On May 24, 7:28 am, Ivan Marsh <anno...@you.nowwrote:
On Thu, 24 May 2007 07:01:02 -0700, nihad.nasim wrote:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?

The simple answer is no. That would violate the browser security model.

I'm sure there's some ActiveX thing you could do to allow for running
local programs... but it would have to be set up on every client you
intend to let use the app.

May 24 '07 #5
On Thu, 24 May 2007 07:01:02 -0700, nihad.nasim wrote:
On May 24, 7:28 am, Ivan Marsh <anno...@you.nowwrote:
On Thu, 24 May 2007 07:01:02 -0700, nihad.nasim wrote:
Is it possible to
enter or call c++ code blocks from javascript
functions? If so, how?

The simple answer is no. That would violate the browser security model.

I'm sure there's some ActiveX thing you could do to allow for running
local programs... but it would have to be set up on every client you
intend to let use the app.On Thu, 24 May 2007 07:34:40 -0700,
nihad.nasim wrote:
c++ in javascripts
I do not intend to put the script on the web. Its for my own use and
will be run only on my computer. If you google "c++ in javascripts", you
will find that the first result does say that you can do so but I am not
that sure on how to do so. Thats why I am asking you guys for help in
this matter.
The first result (and the majority of the others) talk about making
javascript calls from C++ not C++ calls from javascript.

Please don't top post.
May 24 '07 #6
On May 24, 10:01 am, nihad.na...@gmail.com wrote:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?
1) A webpage can call functions in ActiveX DLLs in IE.

2) You can host IE browser in a C++ or C# application, and call back
and forth. An example in C# is :

http://msdn2.microsoft.com/en-us/library/a0746166.aspx

There used to be C++ examples. Search around msdn.microsof.com.

Kevin

May 24 '07 #7
On May 24, 10:01 am, nihad.na...@gmail.com wrote:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?
Btw, this is a common mistake in asking questions... it's too
general :-)

Tell us what you want to accomplish instead. Quite often there are
many ways.

Kev

May 24 '07 #8
Sorry if I was a bit ocnfusing. This was the link I intended you to
visit
http://safari.oreilly.com/0735712778/ch10

Read under the heading "Calling C++ Code from JavaScript"
On May 24, 7:59 am, Ivan Marsh <anno...@you.nowwrote:
On Thu, 24 May 2007 07:01:02 -0700, nihad.nasim wrote:
On May 24, 7:28 am, Ivan Marsh <anno...@you.nowwrote:
On Thu, 24 May 2007 07:01:02 -0700, nihad.nasim wrote:
Is it possible to
enter or call c++ code blocks from javascript
functions? If so, how?
The simple answer is no. That would violate the browser security model.
I'm sure there's some ActiveX thing you could do to allow for running
local programs... but it would have to be set up on every client you
intend to let use the app.On Thu, 24 May 2007 07:34:40 -0700,
nihad.nasim wrote:
c++ in javascripts
I do not intend to put the script on the web. Its for my own use and
will be run only on my computer. If you google "c++ in javascripts", you
will find that the first result does say that you can do so but I am not
that sure on how to do so. Thats why I am asking you guys for help in
this matter.

The first result (and the majority of the others) talk about making
javascript calls from C++ not C++ calls from javascript.

Please don't top post.- Hide quoted text -

- Show quoted text -

May 24 '07 #9
On Thu, 24 May 2007 08:28:41 -0700, nihad.nasim wrote:
Sorry if I was a bit ocnfusing. This was the link I intended you to
visit
http://safari.oreilly.com/0735712778/ch10

Read under the heading "Calling C++ Code from JavaScript"
"For example, if a developer creates a C++ library for file access and
calls it DWfile, then a new object named DWfile is suddenly available to
all JavaScript developers and Dreamweaver users who install that library
in their copy of Dreamweaver."
May 24 '07 #10
wrote on 24 mei 2007 in comp.lang.javascript:
On May 24, 7:04 am, "Evertjan." <exjxw.hannivo...@interxnl.netwrote:
> wrote on 24 mei 2007 in comp.lang.javascript:
Is it possible to enter or call c++ code blocks from javascript
functions? If so, how?

In a browser?
[Please do not toppost on usenet and do not quote signtures]
Yeah.
Not possible as browsers I know of do not interpret c++ code.
Is there any other way to run javascripts except in browsers?
Yes, many,
there are stand alone interpreters,
you can use serverside javascript,
etc.
PS I am kind of new to javascripts.
It shows, as the language is called "javascript" and has nothing to do with
a hypothetical scripting version of Java but the unfortunate choice of
names.

You seem to be new to usenet too? ;-)

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 24 '07 #11
Ivan Marsh wrote on 24 mei 2007 in comp.lang.javascript:
On Thu, 24 May 2007 08:28:41 -0700, nihad.nasim wrote:
>Sorry if I was a bit ocnfusing. This was the link I intended you to
visit
http://safari.oreilly.com/0735712778/ch10

Read under the heading "Calling C++ Code from JavaScript"

"For example, if a developer creates a C++ library for file access and
calls it DWfile, then a new object named DWfile is suddenly available to
all JavaScript developers and Dreamweaver users who install that library
in their copy of Dreamweaver."
That does not mean c++ code(!!!) is available.

All kinds of plug-ins of the browser could be available.

Accessing servers with clientside javascript also opens the possibility of
executing Fortran, PHP, CGI-exe, SQL, etc.

The same can be said with a browser that has it's security settings turned
of on the client.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 24 '07 #12
You are quite right :-D

May 24 '07 #13
wrote on 24 mei 2007 in comp.lang.javascript:
You are quite right :-D
Quite right on what?

This is not email, but usenet,
so please always quote what you are replying on.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
May 24 '07 #14

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Sender | last post: by
2 posts views Thread by Axel Foley | last post: by
1 post views Thread by i6033162556-signup1 | last post: by
1 post views Thread by none | last post: by
13 posts views Thread by Randell D. | last post: by
5 posts views Thread by Aaron Gray | last post: by
17 posts views Thread by Kermit Piper | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.