ssbbs wrote:Antonio Linares wrote:Yes, it is properly working, in example:
oWebView:Eval( 'document.body.style.backgroundColor = "#' + NumToHex( hb_Random( 0xFFFFFF ) ) + '"' )
How to get result?
ex: oWebView:Eval("return (1+2);")
Basically this is the used technique:
oWebView:Bind( "SendToFWH", SendToFWH() ) // this creates a javascript function "SendToFWH" that will call FWH SendToFWH()
oWebView:Eval( "SendToFWH( 1 + 2 )" ) // this way we return a value from javascript to FWH
there is some C source code involved that we are working to simplify using the Class TWebView