1

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?

rmaddy
  • 307,833
  • 40
  • 508
  • 550
gurmandeep
  • 1,207
  • 1
  • 13
  • 29

0 Answers0