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