Week 4

Lecture Notes:

Next Week: Review of Homework Assignment Set 2, Regular Expressions, Form Validation

Practice Quizzes:

Homework:

Reading Assignment: (Review of previous material)

  • Netscape's JavaScript Reference on string Objects - covers every Method and Property of the string Object, which as you'll see, is quite a few. You may find some of it a little obscure, but if you skim through it and try to understand as much of the content as possible, you'll wind up with a good understanding of how to work with text in JavaScript.

Assignment 3: Due 27 Oct

  1. Extend the functionality of 341.htm to check whether the age entered is in a specific numeric range - (ie, at least 18 & less 21) - and, if not, warn the user and return the default value.
  1. Extend 342.htm so that a drop down combo box allows surfers to choose among many images to be shown. For example, if the User chooses Picture of My Aunt in the Pull Down Menu, the picture of Me will be replaced by the picture of My Aunt. Each image is linked up to a different URL, and is clickable. On a MouseOver have a document.getElementById(...).innerHTML or Tooltip Message appear for each individual Image and have the message disappear with an onMouseOut. Also make sure that this exercise is "Browser Compatible".
    Hint: Synchronizing Links with "Pictures"