I put <script>function Execute(p1){prompt( "@", "App.Execute("+p1 );}</script> on my header html file in assets. And in my online funcs.js i have on button comand Execute("blablabla"); I use for bluetooth printer. In new release start alert message "@", "App.Execute("blablabla" ); and touch ok. in Chrome browse on pc this is normal and never work printer.But DS new release this behaving the same as Chrome for PC, and my printer not work.
Html -> (in assets on phone)
<header>
<script>function Execute(p1){prompt( "@", "App.Execute("+p1 );}</script>
</header>
==========================
funcs.js -> (Online apache)
Execute("printar('"+dado+"')");
==========================
foo.js -> (App main script on phone)
var bt;
function OnStart() {
blablabla......
bt = app.CreateBluetoothSerial();
bt.SetOnConnect(bt_OnConnect);
bt.SetOnReceive(bt_OnReceive);
bt.SetSplitMode("End","\n");
app.ShowPopup("Conectando MPT-II!");
bt.Connect("MPT-II");
blablabla.....
}
function bt_OnConnect(ok){
if(ok){app.ShowPopup("Printer OK");}
else{app.ShowPopup("Printer Fail!");}
}
function printar(valor){
bt.Write( " TESTE\n" );
}