How can I execute Javascript in my Delphi program without TWebBrowser?

后端 未结 4 1575
不知归路
不知归路 2020-12-30 05:12

I am working with a Web API that uses a Javascript interface to make requests, and the response is via a callback Javascript function. Is there a way to call Javascript cod

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 05:59

    Is there a way to call Javascript code from Delphi without using a TWebBrowsercomponent?

    Yes, other way to use JavaScript wrapper for SpiderMonkey (FireFox) javascript engine.

    http://code.google.com/p/delphi-javascript/

    Required only 1 DLL. Compatible with XE2/XE4/XE5. Ready for x86 and x64 systems.

    Usame sample: Can I execute a Javascript function inside Spidermonkey and get the return value?

提交回复
热议问题