Friday, October 17, 2008

Class4 Assignment Repost



This is an upgrade to earlier posted solution to class4 assignment. Added are:
  • use of RegEx expression to perform email address validation

  • DOM traversal combined w/ regex processing to assign a runtime an event handler to a group of properties.


  • Lessons learned:
  • know when to use the two argument RegExp constructor versus the one arg. The 2nd arg is needed when want to set runtime flags, such as suspending exact case matches.

  • Submit and Reset form types have implied default actions. Reset clears all of a forms fields, which isn't precisely what was wanted in this one-form design.

No comments: