Homework
Add features to the web page you built in the lab to support the "reset" and "submit order" buttons as follows:
- The standard reset button will blank out all the text boxes in the
form, even the unit price boxes. We don't want this. Instead,
include a reset button that calls a function that blanks out all the
text fields except the unit price fields. You can blank out a field
using an expression such as this:
document.frmOrders.txtGrandTotal.value="";
This blanks out the grand total box on the frmOrdersform. The submit order button should raise an alert box such as the one shown in the following image:
Finally, you may have noticed a bug in the code provided in the lab. The bug arises when you do the following: (1) set one of the quantities to a non-zero value, say "1"; (2) compute the cost; (3) then erase the quantity "1"; (4) compute the cost again. Figure out what the problem is and fix it.
Personal Database Project
Create an HTML-form-based page similar to the one from class or from the lab that is suitable for your PDP. The nature of this page will depend on your personal project, just make it page where client-side processing is appropriate (e.g., a page that requires some input checking).
What to turn in
Use KV to submit your HTML page as an attachment.
Back to the top