I'm using a UIWebView with local jquery and a script that defines a function, like this:
function myFunc() {
var myVar;
function info() {
alert('info');
}
}
What I cannot accomplish is such a simple task:
var myfunc = new myFunc();
myfunc.info();
in the UIWebView. How can I instantiate a new object and call a function of that object by using:
[webViewObject stringByEvaluatingJavaScriptFromString:@"myfunc.info();"];
I'm struggling about this.