Run JS when device ready
I would like to run a JS when device ready, but it didn't work.
-- startScreen ,Device ready,1. Run JavaScript,Handler: alert("Test!");
-- any step I have missed? Could you please help? thanks.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I would like to run a JS when device ready, but it didn't work.
-- startScreen ,Device ready,1. Run JavaScript,Handler: alert("Test!");
-- any step I have missed? Could you please help? thanks.
Hi,
Do you test on a real device?
Not yet, then how can I test it on browser first? Should I use "load" instead?
May I know is there any difference between the event of "load" and "device ready" ?
Many thanks !
Hello! You can test on emulator. You can also test action on load event first and when you're ready to test app on device move action to device ready event. You can find more information on these events online http://api.jquerymobile.com/pageload/
http://docs.phonegap.com/en/2.9.0/cor...