I'm making a simple call to my Javascript function and sending a variable/string in the same. But the same function is not getting called in javascript.
NSString *jsCallBack = [NSString stringWithFormat:@"setLegend('%@')",result];
[webview stringByEvaluatingJavaScriptFromString:jsCallBack];
In Javascript
function setLegend(lStr)
{
}
Please let me know what's wrong?