var P="";
var Q="";
function OnStart()
{
var form='<form> price:<br><input type="text" id="price"><br>'+
' Quantity:<br><input type="text" id="Qty"></form>';
var s='<script src="file:///android_asset/app.js"></script>'+
'<script type="text/javascript">'+
' '+
' app.SaveText("webvarP",document.getElementById("price").value);'+
' app.SaveText("webvarQ",document.getElementById("Qty").value);'+
'function myboo(id,field,deflt){ app.Execute("boo()")'+
'}</script>'
lay = app.CreateLayout("Absolute");
bt=app.CreateButton("esta esta detras",1,.5);
web = app.CreateWebView(0.8, 0.8);
web.LoadHtml(form+s +"<button onclick=myboo()>podria ser que si</button>");
lay.AddChild(web);
// lay.AddChild(bt);
app.AddLayout(lay);
}
function boo()
{
P=app.LoadText("webvarP","0");
Q=app.LoadText("webvarQ","0");
app.ShowPopup("Price="+P+"\nQty="+Q);
};