Exploiting the Information World
ITEC-2110 - Fall 2000

These exercises are part of your grade!

For each exercise that you complete during class you must make record your results to show the TA (or show the TA your screen). If you don't have time to complete everything during class you must record your results and give them to the TA by the next class meeting.

EIW Exercises: JavaScript


1. Form Field Validation

Build an HTML form with the following stuff:

Set the action for your form to be the URL: http://cgi.cs.rpi.edu/~hollingd/eiw/CGI/simple/simple.cgi

Include JavaScript in your web page so that the following must be true before the browser will submit a request:

If submission fails, the exact reason for failure must be displayed (you can display it however you want, an alert is probably the easiest way).

2. JavaScript Grade Calculator

Create a web page that allows the user to type in 2 test grades and 4 homework grades and computes (and displays) the final average for a student. The test grades count 30% each and the homeworks count 10% each.