![]() |
| ||
| calling javascript files from c++ hi you please tell me how to call javascript files from c++ code?i know this(iam not 100% sure) that you first call html files,then from ther you call javascript files. |
| ||
| Re: calling javascript files from c++ i dont believe you can call javascript function from c++ but why do you need to do so? |
| ||
| Re: calling javascript files from c++ Quote:
What are you using C++ for? If you're creating a HTML page, then you can just embed the JavaScript files. <script type="text/javascript" src="http://example.org/js/file.js"></script> If you want to use JS functions inside C++ code, you'll need a JavaScript interpreter, such as Mozilla's Spider Monkey. http://www.mozilla.org/js/spidermonkey/ I believe what you want is probably simpler, if you describe the scenario better there should probably be a simple solution. |
| ||
| Re: calling javascript files from c++ I would like also to use javascript in my programme. I have developed an application using C++ and Borland Builder. In it, I load an html file which contains an applet that connect to a Wifi Robot obtaining the image of an IP camera installed in it. I would like to control the IP camera from my application, but the problem is that the functions used to controlled it are written in JavaScript and are contained in that html. Would the SpiderMonkey or the SpiderApe be useful for my application?? Thanks. |
| ||
| Re: calling javascript files from c++ Reading the JSAPI user guide and following up on the Mozilla forums might just solve your problem. |
| All times are GMT -4. The time now is 3:56 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC