0

I have some html files and there are java script functions in html files.

I have to call java script functions from Native C++ without touching the browser.

I don't have to use any frameworks and I can't use internet explorer under the my code because internet explorer doesn't support all java script functions.

So please give me a reasonable advise.

Nikolay Kostov
  • 16,433
  • 23
  • 85
  • 123
ggdev
  • 29
  • 1
  • 7
  • So you mean you want a library that can execute javascript code? – meneldal May 29 '15 at 06:18
  • possible duplicate of [How to execute Javascript function in C++](http://stackoverflow.com/questions/2713289/how-to-execute-javascript-function-in-c) – meneldal May 29 '15 at 06:19
  • I can not use any library because the exe should be very thin not more then 300 kb. – ggdev May 29 '15 at 06:26
  • @ggdev: Are you asking how to write your own engine to interpret and execute JavaScript? – Blastfurnace May 29 '15 at 06:34
  • Size is not a reason for not using a library. It's a reason for not using a big library. You should add this to your question. But with these limitations, you'll just have to implement your own JavaScript engine, which is probably not feasible. – Sami Kuhmonen May 29 '15 at 06:35
  • Implementing javascript parsing would be way too broad for a single question. The only other solution is to have something execute the code for you so it will be a library or another program. And you cannot parse all javascript with only a 300KB program. If you can you are definitely an expert coder. – meneldal May 29 '15 at 06:43
  • Ok. Thank you for the answers. I will try to find a small library. – ggdev May 29 '15 at 06:47

0 Answers0