A webpage users of my app are trying to load has this link:
<a href="javascript:DoSubmitScr('1B'); SetTextOption('Detailed');" id="btn_14" class="Button1" style="position:relative;width:190px;">
And it tries to call this javascript block:
function DoSubmitScr(scrval)
{
GlobalHelpUrl = HelpUrl;
document.getElementById("hScreen").name = "SCR";
document.getElementById("hScreen").value = scrval;
if (scrval.toUpperCase() == "1B" ) document.getElementById("main_iframe").scrolling = "no";
document.forms[0].target = "_parent";
document.forms[0].method = "post";
document.forms[0].action = "/wtouch/perinfo.exe/oper";
doSubmit();
}
Now I try to do this javascript:
[webView stringByEvaluatingJavaScriptFromString:@"document.getElementById('btn_14').click();"];
But it doesn't work, nor when I try to do it like this:
[webView stringByEvaluatingJavaScriptFromString:@"DoSubmitScr('1B');"];
Any ideas on how to invoke this javascript method?
Ron