Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. function onLoad() {
  2. alert("hjk"); // This is working
  3. document.addEventListener("deviceready", onDeviceReady, false);
  4. }
  5.  
  6. // Cordova is loaded and it is now safe to call Cordova methods
  7. function onDeviceReady() {
  8. // Register the event listener
  9. alert("hjkj,j"); // This is also working
  10. document.addEventListener("backbutton", onBackKeyDown, false);
  11. }
  12.  
  13. // Handle the back button
  14. function onBackKeyDown() {
  15. alert("hi"); // This is not working, why??
  16. Ext.getCmp('aboutcards').setActiveItem('card-0');
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement