Hi to all
Excuse me but I'm still not very mature in creating web apps.
I have a Toast.js, a simply file that customizes and displays toaster messages
https://www.cssscript.com/super-simple-javascript-message-toaster-toast-js/
after starting the program the three files (toast.js, toast.min.js and toast.mod.js) are copied into Scripts folder.
....here I have a lot of confusion
In BANano_Ready, i put
And for call this function:
but I don't see anything, where am I wrong?
Thanks for your tips
Excuse me but I'm still not very mature in creating web apps.
I have a Toast.js, a simply file that customizes and displays toaster messages
https://www.cssscript.com/super-simple-javascript-message-toaster-toast-js/
after starting the program the three files (toast.js, toast.min.js and toast.mod.js) are copied into Scripts folder.
....here I have a lot of confusion
In BANano_Ready, i put
B4X:
#if Javascript
function toastshow(text)
{
var toast = new iqwerty.toast.Toast();
toast.setText(text)
.setDuration(3000)
.show();
}
#End If
And for call this function:
B4X:
BANano.RunJavascriptMethod("toastshow", Array As String("Hello!"))
Thanks for your tips