![]() |
|||
|
|
|
|
|
Objectives: Learn JavaScript, the Document Object Model, and how they can be used to create dynamic web pages. Be able to write a JavaScript interactive function. "Estrella, Chapters 1 - 3, 6 and 9" provide excellent examples.
Assignment 3: Write a JavaScript, VBScript, or other script function to accept form input from the customer or web site user. The customer data is specified below in XML notation. Each order is accepted from the web page form as follows:
1) Code, test, and debug the JavaScript function, that will handle the form input, and place it in the head section of the html page. 50%
<order>
<customer>
<name>
</name> *
<email> </email>
*
</customer>
<product>
<prodnum> </prodnum>
*
<price> </price>
*
<quant> </quant>
*
</product>
</order>
* Indicates required form field. XML is not required in this assignment. The intention is to show XML, since it will be covered in class and used in assignment 4. The required fields, in green, should be included in your form and JavaScript function that handles the form.
2) Code a form to get the required fields and display the input back to the user as either an alert box or another html page. 50%
You may use the JavaScript examples reviewed in class as an example.
Please publish your home page to either Tripod or another web host. Hand in a print out of your form page with your name and Internet URL.