Part 1 - Forms and Validation 1. In this assignment, you will create a new JavaScript...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Part 1 - Forms and Validation 1. In this assignment, you will create a new JavaScript file to include all of the existing validation routines. After creating the file, validation service.js, move the existing validation() function to this new file. 2. Revise the date validation routine so that it uses a regular expression to validate the date input. You may use the following regular expression for date. /^\d(1,2))\/(\d(1,2})\/(\d(4})$/ a. 3. Update the product order page so that the "Place Order" button is disabled when the page loads. Add a "Terms of Agreement" check. The "Place Order" button should remain disabled until the user checks the "Terms of Agreement" check box. Part II-Dynamic Styling 1. Create a new page named "homepage.html". This will be a "home" or "splash" page for an e-commerce company. As time permits, you can be creative and add content/styling of your choice. 2. Add an Image Array to your home page. There is one special property of the document object that pertains to Images displayed on a page. The document.images property of a page is an array of all images on a page, referenced beginning with images [0] through the total number of tags contained on the page. This array can be manipulated through scripts; therefore, you can dynamically change images in response to user or script events. Using the example (Figure 8-12) at http://ttwebtutorials.mga.edu/is/chp8/images-links.aspx as a guide, modify your image array to create a dynamic slide show of the images using the JavaScript window timer. NOTE: THE EXAMPLES ON THE TUTORIAL ABOVE USE THE OLDER INLINE JAVASCRIPT APPROACH. DO NOT DO THIS ON YOUR PAGE. ALL JAVASCRIPT SHOULD BE CODED WITHIN YOUR EXTERNAL JS FILE. EVENTS SHOULD BE HANDLED USING THE TRADITIONAL OR W3C APPROACH. Part 1 - Forms and Validation 1. In this assignment, you will create a new JavaScript file to include all of the existing validation routines. After creating the file, validation service.js, move the existing validation() function to this new file. 2. Revise the date validation routine so that it uses a regular expression to validate the date input. You may use the following regular expression for date. /^\d(1,2))\/(\d(1,2})\/(\d(4})$/ a. 3. Update the product order page so that the "Place Order" button is disabled when the page loads. Add a "Terms of Agreement" check. The "Place Order" button should remain disabled until the user checks the "Terms of Agreement" check box. Part II-Dynamic Styling 1. Create a new page named "homepage.html". This will be a "home" or "splash" page for an e-commerce company. As time permits, you can be creative and add content/styling of your choice. 2. Add an Image Array to your home page. There is one special property of the document object that pertains to Images displayed on a page. The document.images property of a page is an array of all images on a page, referenced beginning with images [0] through the total number of tags contained on the page. This array can be manipulated through scripts; therefore, you can dynamically change images in response to user or script events. Using the example (Figure 8-12) at http://ttwebtutorials.mga.edu/is/chp8/images-links.aspx as a guide, modify your image array to create a dynamic slide show of the images using the JavaScript window timer. NOTE: THE EXAMPLES ON THE TUTORIAL ABOVE USE THE OLDER INLINE JAVASCRIPT APPROACH. DO NOT DO THIS ON YOUR PAGE. ALL JAVASCRIPT SHOULD BE CODED WITHIN YOUR EXTERNAL JS FILE. EVENTS SHOULD BE HANDLED USING THE TRADITIONAL OR W3C APPROACH.
Expert Answer:
Answer rating: 100% (QA)
To complete the given tasks follow the instructions below Part 1 Forms and Validation 1 Create a new JavaScript file called validationservicejs and in... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Laptech Inc. is a local supplier of Microchip Crystals is considering expanding globally which will lead to increased credit sales. While the firm expects an extra $8 million in sales if it expands...
-
Before you begin this assignment, be sure you have read the UMUC Family Clinic Case Study below and your Week 1 and Week2 syllabus readings, which discuss EHR functionality and Process...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Figure 20.3 describes the Medicare Part D prescription drug benefi t. Look at the Web page www.partd-medicare.com/ in your area and determine the marginal coinsurance rates applicable in each...
-
For each of the following citations identify the type of authority (statutory, administrative, or judicial) and explain the citation. a. Reg. Sec. 1.111-1(b) b. IRC Sec. 469(c)(7)(B)(i) c. Rev. Rul....
-
Using the empirical rule, determine the approximate percentage of a normal distribution that is expected to fall within the interval described. a. Less than the mean b. Greater than 1 standard...
-
Partial comparative balance sheet and income statement information for Allen Company is as follows: In 20x6, the year-end balances for Accounts Receivable and Inventory were $32,400 and $51,200,...
-
With a portfolio as diverse as Googles, what are the companys core brand values?
-
1. Calculate the indicated limit x 3 lim x 2 7 x + 1 2 x 2 + 4 x 2 1 . If a limit does not exist then answer + , - , or DNE (whichever is correct). Make sure to check that L'Hopital's rule applies...
-
Graph two periods of the function (x) = 3cot x/2 + 1.
-
choose the correct answer The dome of a whispering gallery has the form of a semi elliptical so that two persons standing at the foci will be able to hear each other. This is because sound waves from...
-
Cane Company manufactures two products called Alpha and Beta that sell for $175 and $135, respectively. Each product uses only one type of raw material that costs $5 per pound. The company has the...
-
What is an IPO over-allotment (Greenshoe) option? Describe the over-allotment option included in Prada's IPO?
-
What ethical frameworks and decision-making models do leaders utilize to navigate ethical gray areas, trade-offs between competing values, and conflicting stakeholder interests, facilitating...
-
Eastern Motors Auto Dealership wanted to estimate the average CLV over a 5 year time horizon of a customer who purchases a new vehicle. The average vehicle sells for $24,400 and has a margin of 10% ....
-
12. P Company regularly sells merchandise to its 80%-owned subsidiary, S Corporation. In 2024, P sold merchandise that cost $240,000 to S for $300,000. Half of this merchandise remained in S's...
-
ketch the graph of a continuous function f, such that f(4) = -2, f'(4) <0, f'(x) <0 for x < 4, and f'(x) > 0 for x > 4. hoose the correct graph below. A. (4.-2) B. (4, D. C. Q (4,-2) (4,-2)
-
How does health insurance risk differ from other types of insurance risk (e.g., automobile or homeowners insurance)? What is the difference between cost sharing and cost shifting? Is retiree health...
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
Marty is a sales consultant. Marty incurs the following expenses related to entertainment of his clients in 2012: Dues to a country club......................................................$4,500...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
Julio Corporation has $8,000,000 of 9.5 percent, 25-year bonds dated March 1, 20x7, with interest payable on February 28 and August 31. The companys fiscal year end is February 28. It uses the...
-
Waxman Corporation issued bonds twice during 20x7. A summary of the transactions involving the bonds follows. 20x7 Jan. 1 Issued $6,000,000 of 9.9 percent, ten-year bonds dated January 1, 20x7, with...
-
Amazon.com, Inc., gained renown as an online marketplace for books, records, and other products. Although the increase in its stock price was initially meteoric, only recently has the company begun...
Study smarter with the SolutionInn App