[webkit-help] How to call JavaScript function from Native...

Ammar Ahmad Awan ammar.ahmad.awan at gmail.com
Mon Jun 20 08:04:33 PDT 2011


Please search for a program called CallJS written by Brent. It will
actually help you call JavaScript from C++ code. You can use the
webview class and call its function called
StringByEvaluatingJavascriptFromString( ). The function will result in
a string which will be the result of your javascript

I hope that helps you.

-- Ammar

On Mon, Jun 20, 2011 at 7:23 PM, Vicky Tux <ssseintr2 at gmail.com> wrote:
> Hi,
> Please anyone help me, how to call JavaScript function from Native and give
> the sample code my development purpose..
> for exmple,
> test.js
> function my_function() {
>      // do something...
> }
> How to i call this function from native...
> Thanks & Regards,
> Vicky.
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

More information about the webkit-help mailing list