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...
-
In Figure P31.57, the rolling axle, 1.50m long, is pushed along horizontal rails at a constant speed v = 3.00 m/s. A resistor R = 0.400 Ω is connected to the rails at points a and b, directly...
-
An inventor has devised a complicated non-flow process in which I mol of air is the working fluid. The net effects of the process are claimed lo be; A change in state of the air from 250oC and 3 bar...
-
Process Manufacturing Ltd has prepared the following fixed budget performance report for the production departments financial results during the year ended 30 June 2025. Units of production...
-
The December 31, 2006 balance sheet of the Blackmon Corporation disclosed the following information relating to its receivables: *The company is contingently liable for a discounted note receivable...
-
Examine the role of process intensification in developing sustainable and environmentally friendly processes, considering the potential for using renewable feedstocks, reducing waste and emissions,...
-
Chelsea Bush is an emerging candidate for her partys nomination for President of the United States. She now is considering whether to run in the high-stakes Super Tuesday primaries. If she enters the...
-
Acme Corporation is a manufacturing company that produces a variety of products for the consumer market. The company has been struggling to compete with foreign competition in recent years, and its...
-
What sales compensation plan would be appropriate for the two distinct environments? What are likely consequences to the business by adopting a misaligned/misguided sales compensation plan? You have...
-
What is the reactor volume & area for acid nitric production by ostwald process? please state the answer with reference.
-
A box of Mr. Phipps Tater Crisps is supposed to contain 156 grams of potato chips. On the side of the box it says "This package is sold by weight, not by volume. Packed as full as practicable by...
-
Convert 57EC to decimal notation. 16 10
-
Tom is trying to write 3/47 as a decimal. He used long division and divided until he got the number 0.0638297872, at which point he stopped. Since the decimal doesn't seem to terminate or repeat, he...
-
Research an article from an online source, such as The Economist, Wall Street Journal, Journal of Economic Perspectives, American Journal of Agricultural Economics, or another academic journal. The...
-
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...
-
A mercury manometer is connected between two points in a piping system that contains water. The downstream tap is $6 \mathrm{ft}$ higher than the upstream tap, and the manometer reading is $16...
-
The same suspension as that in Problem 39 above was subsequently tested in a $28 \mathrm{~mm}$ internal diameter pipe, and the following data reported: $\Gamma\left(\mathrm{s}^{-1} ight)$ 127 200 289...
-
The manometer equation is $\Delta \Phi=-\Delta ho g \Delta h$, where $\Delta \Phi$ is the difference in the total pressure plus static head $(P+ho g z)$ between the two points to which the manometer...
Study smarter with the SolutionInn App