ITSE 2402 Intermediate Web
Assignment 1

JavaScript Text, Chapter 6 (Using Object-Oriented JavaScript Date Class), pgs 279 - 302

Reading:

Practice:

Page 291, last line in step 4, should be method of the "dateObject". The book says "dataObject".
Page 298, Line 9: The text example does not close the "input" with a space slash. Also, there is a logic error on the same page in the calcGroupDiscount(). Neither groupSize = 5 or groupSize = 10 is included in the text. Both result in no discount being applied. Additionally, if toLocaleString() doesn't result in comma-delimited American-style numbers, don't worry about it.

// ********************************************************
// the code specified for getting days of month on pg 293
// is flawed. It does not take into account whether the year
// is leap year which changes the number of days in Feb
// daysInMonth function takes care of days in leap and nonleap years
// this snippet came from http://snippets.dzone.com/posts/show/2099

function daysInMonth(iMonth, iYear)
{
 return 32 - new Date(iYear, iMonth, 32).getDate();
}

// now that's an amazing piece of function!
//**********************************************************

Project for this assignment

Update your index page:

Uploading:

Testing uploaded pages