But on second execute it stalls n returns "error"
If anyone has a thought could you please let us know?
Code: Select all
<html>
<head>
<script type="text/javascript">
function myfunction(txt)
{
alert(txt);
}
function myfunction2()
{
alert('Who Dat Be?');
}
function calculate(a,b,c) {
d = (a+b) * c;
return d;
}
</script>
</head>
<body>
<form>
<input type="button" onclick="myfunction('Hello')" value="Call function">
</form>
<p>By pressing the button above, a function will be called with "Hello" as a parameter. The function will alert the parameter.</p>
</body>
</html>
Code: Select all
on doCallBrowserFunction
--MobileControlDo sBrowserId, "execute", "myfunction('sup dude!')"
--MobileControlDo sBrowserId, "execute", "myfunction2()"
MobileControlDo sBrowserId, "execute", "result=calculate(4,5,9)"
answer the result
end doCallBrowserFunction