I have a web view (using newWebView) and I’d like to call a Javascript function from within my Lua code. This is possible for native iOS and Android code so my question is if this is possible with Lua too.
Example:
//This is the JS function function callback(param){ //Do something }
local webView = native.newWebView( 0, 0, 320, 480 ) webView:request("template.html", system.ResourceDirectory) //This is where I want to call the JS function webView:executeJS("callback", 2)