SYSC 4504: Distributed Network Processing
Programming Assignment 2: Ajax
Due: November 9, noon
In this lab we will continue with the BMI example. This time we will add some Ajax features to download a list of
blocked e-mail addresses from a server as part of the input validation. You are free to use the posted sample
solution to Assignment 1 or to continue working with your own solution.
Input Page
As a reminder, in Assignment 1 you were asked to design a webpage that allows a user to input a range of
information required to calculate the BMI, as shown below in a screenshot for Internet Explorer.
Figure 1: Internet Explorer Display
Assignment Details
In the last assignment, we also added input validation based on
JavaScript
code. Now, as an additional
“validation” step, your
JavaScript
code should download an XML document called “
emails.xml
”. This file
contains a list of banned e-mail addresses. If the user indicated that they want the BMI results sent via e-mail and
the user’s e
-mail address corresponds to one of the e-mail addresses listed in that file, a warning message should
