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
  • 314,917
  • 42
  • 532
  • 579
gurmandeep
  • 1,227
  • 1
  • 14
  • 30

0 Answers0