Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2009Spring

01.12.09 - 05.08.09

Scripting (Online)

CSYS2033

Tuesday Thursday
01:00 PM - 02:20 PM

Beginning Form Validation

Lab04

Objective: To practice using JavaScript with online forms

pastdue

Submit Your Solution

Lab04

Request a Copy of your Solution

Lab04

Requirements

Webpage properly formed5 pts
JavaScript tags entered correctly5 pts
All required information collected20 pts
Appropriate input controls used for collecting each piece of information20 pts
Form controls cannot be left blank20 pts
Form is neat and easy to follow15 pts
Client appropriately informed of errors15 pts
Total100 pts

Instructions

For this lab you will need to design an online form for a client visiting a website to fill out. The form should collect the following information from the client:

  • First name
  • Last name
  • Middle initial
  • Street Address
  • City
  • State
  • Zip Code
  • Username
  • Password
  • Password Confirmation
  • User Agreement

The javascript you write to go along with this form should confirm that none of the information is missing at the time the client submits the form and the two password fields should be confirmed to contain the same value. The user agreement should be a control that allows the user to signify that they have read and understood a user agreement (which doesn't really exist so don't worry about having one) that must be marked 'Yes' or something similar before the form will be submitted.

The controls you use to design this form and the method of informing the client of errors in the form are left up to you, but keep the clients experience in mind and make everything as friendly as possible.