Assignment 7
Due Monday 4/19 at 5 pm.
Submit the pages online and drop a printed copy at my office by 5 pm on Monday
4/19.
This assignment is optional. If you do it, it will replace one of the other
assignments.
This assignment uses JavaScript.
-
Redo your server home page so that there is a button, a selection list, and
a textarea.
Remove all the links from the left frame of your server frame and replace
it with these three elements. Whichever item is selected, then there should
be a description of that location. When the use clicks the Jump button, then
the corresponding page will appear in the right frame.
-
Create a new page that has a form. Validate the data on the form. If all
data has been validate, then call my script
http://www.cs.fiu.edu:12345/scripts/print_query.pl. Do the following
-
Request a last name. The field cannot be blank. The name may only contain
letters. The first letter must be uppercase. If any of these fail, then do
not submit the form, but alert the user as to what must be corrected. Place
the focus on the name field if there is an error.
-
Request a favorite color. It may not be blank. If it is blank do not submit
the form, inform the user of the mistake, and place the focus on the field.
Use a radio button.
-
Request a hobby. Have at least 5 items in a multiple selection list. The
user must select exactly two hobbies from the list. Generate an error if
this is not the case, and place the focus on the field.