LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2006, 05:22 AM   #1
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
How do I call javascript from c++?


How do I call javascript from c++?

any idees?

Thanks in advance.
 
Old 04-15-2006, 06:13 AM   #2
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Original Poster
Rep: Reputation: 38
got an ide to open a hiddenwindow and with obj call a javascript.
 
Old 04-15-2006, 01:09 PM   #3
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
You can probably find a JavaScript interpretation library written in C++ somewhere. For example, ixlib (http://ixlib.sourceforge.net/) looks like it may have what you're looking for.

If that doesn't work out, you can also just have your C++ program create a pipe(2), then fork(2) and have the child exec(2) to a JavaScript interpreter. Then pass data back and forth along the pipe. That sounds really complicated, though, and is not really recommended.
 
Old 04-27-2006, 08:07 AM   #4
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Original Poster
Rep: Reputation: 38
Ok a lib. Will try that. Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
call on a javascript var ??? paul_mat Programming 1 02-15-2006 08:51 PM
Need help on Javascript jun_tuko Programming 3 01-16-2006 03:45 AM
Javascript help darin3200 General 4 09-03-2005 11:58 PM
What do you call your remote control? I call mine... RHLinuxGUY General 19 10-18-2004 06:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration