Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. <div data-role="page" id="homePage">
  2. <div data-role="header" data-theme="b">
  3. <h1>
  4. Heading
  5. </h1>
  6. </div>
  7. <div data-role="content">
  8. <select name="select-choice" id="select-choice">
  9. <option value="Select Category">Select Category
  10. </select>
  11. </select>
  12. </div>
  13. </div>
  14.  
  15. $(document).on("pageshow", "#homePage", function () {
  16. alert("on page show event occurred!! ");
  17. // I did my logic here...
  18. });
  19.  
  20. $(document).on('pagebeforecreate',function(){console.log('pagebeforecreate');});
  21. $(document).on('pagecreate',function(){console.log('pagecreate');});
  22. $(document).on('pageinit',function(){console.log('pageinit');});
  23. $(document).on('pagebeforehide',function(){console.log('pagebeforehide');});
  24. $(document).on('pagebeforeshow',function(){console.log('pagebeforeshow');});
  25. $(document).on('pageremove',function(){console.log('pageremove');});
  26. $(document).on('pageshow',function(){console.log('pageshow');});
  27. $(document).on('pagehide',function(){console.log('pagehide');});
  28.  
  29. $(window).load(function () {
  30. console.log("window loaded");
  31. });
  32. $(function () {
  33. console.log('document ready');
  34. });
  35. $(window).on('unload',function () {console.log("window unloaded");});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement