| 152-121 |
ADVANCED WEB DEVELOPMENT |
35 Points |
JavaScript
Project 2 Checklist |
Check in both Firefox and Internet Explorer
| Event |
Field | Specifications | Points |
| Load | Body | Insert year into starting and ending year fields Cursor in Number of People Select the default text |
2 |
| Change | Number of people | Validate People: entered, numeric, greater than or equal to 0 | 2 |
| Change | Starting month | Set the ending month to the same month Insert the starting and ending year |
3 |
| Change | Starting day | Set the ending day to the same day Insert the starting and ending year |
1 |
| Focus | Starting year | Insert the year | 2 |
| Blur Change |
Ending year | Verify ending date is greater than the starting date Calculate number of days |
2 |
| Calculate number of days function | 3 | ||
| Focus | Total Days | Calculate number of days Cursor in Scuba Count |
2 |
| Focus | Basic Charge | Validate People Calculate the length of stay Calculate Basic Charges |
2 |
| Focus Change |
Scuba count/cost | Focus, Select - this code is pre-written Validate entry: entered, numeric, less/equal to 20 Cost change, recalculate |
0 |
| Focus Change |
Golf count/cost | Focus, Select Validate entry: entered, numeric, less/equal to 16 Cost change, recalculate |
2 |
| Focus Change |
Riding count/cost |
Focus, Select Validate entry: entered, numeric, less/equal to 12 Cost change, recalculate |
1 |
| Focus Change |
Total Cost | Calculate and store the total estimated cost | 1 |
| Change | Email address | The email address should be entered There should be only one @ symbol There should be characters before/after @ symbol |
1 |
| Click | Calculate button | Validate Form, place calculated total into Total Cost field. | 2 |
| Click | Submit button | Validate Form Return false if the data is not valid, abandon the submit. |
1 |
| Click | Print button | Validate the form, if valid continue to create the cookie and go to the
confirm page
cookieText="name=estimate&page="+formData |
4 |
| Load | Confirm page | Read the cookie Display the data (create an array using the split function, loop through the array) |
4 |
| Good modularity | -0 to -5 points | ||
| Clean code | -0 to -10 points | ||