title: How to call a javascript function in my phonegap ios app from an objective-c method?
body: <p>I tried this but it didnt work. 
  here is my phonegap index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script&gt;
  function myFunction()
  {
  alert("Hello World!");
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is my MainViewController.m method i want to trigger it:</p>
  
  <pre><code>- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error {
  adView.hidden = YES;
  
  // jscript call
  [webView stringByEvaluatingJavaScriptFromString:@"myFunction()"];
  }
  </code></pre>
  
  <p>Is what i am trying to do even possible? I dont know objective-c at all so i am really lost here. Please help!</p>