New Release app.Execute() no more work with HTML command.

83 views
Skip to first unread message

Fernando Remor

unread,
Mar 21, 2015, 12:04:08 PM3/21/15
to androi...@googlegroups.com
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" );
}

Dave Smart

unread,
Mar 21, 2015, 1:06:40 PM3/21/15
to androi...@googlegroups.com
Hi Fernando,

The "@" symbol has now been changed to a "#" symbol.  Sorry, I should have put that in the release notes.

Regards
David

Fernando Remor

unread,
Mar 21, 2015, 1:48:45 PM3/21/15
to androi...@googlegroups.com
The "@" symbol has now been changed to a "#" symbol.
Perfect. now works fine. tank's.
Greate job in this new release for new features.
Reply all
Reply to author
Forward
0 new messages