Advertisement
Guest User

FCM#70 - CRUD 5

a guest
Feb 10th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. /*******************
  2. // Variables
  3. *******************/
  4. var form = ge('ubuVersForm');
  5.  
  6. /*******************
  7. // Actions
  8. *******************/
  9.  
  10. // Handle form event
  11. if (form.attachEvent) { // if the browser allows for attachEvent
  12. // attach processForm function to trigger when submit button is pressed
  13. form.attachEvent("submit", processForm);
  14. } else { // if not then let’s just add the ol' event listener
  15. // when submit is triggered, run the processForm function
  16. form.addEventListener("submit", processForm);
  17. };
  18.  
  19. // display the data to screen from localstorage every time the page loads
  20. displayData();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement