PDA

View Full Version : execute a small piece of javascript code ?



cornucopia
8th August 2009, 19:19
Is there any easy way to execute a piece of javascript replied from HTTP server ?

Is Webkit too big for this problem ? but it is integrated in Qt instead of spidermonkey engine.

Thanks

wysota
12th August 2009, 12:19
Did you try QScriptEngine?

Zanjy
28th February 2012, 15:00
You did not even to get the Script replied by the HTTP server
look into the Fancy Browser Example and search for evaluateJavaScript
Thus you can write your JavaScript into the Qt Application
If you want to start JavaScript in interaction with web sites use normal html event handling