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...
-
A magnifying glass is rated at 3.0X for a normal eye that is relaxed. What would be the magnification of this lens for a relax eye whose near point is (a) 55 cm, and (b) 16 cm ? Explain the...
-
5. Having a linked list with each node defined as below: class Node ( int data; Node next; Node(int d) [ data = d; next = null; Write the code to find the Nth element from the end of the linked list....
-
To build an information system, which do you need to identify first, classes or objects?
-
On January 1, 2020, Innovus, Inc., acquired 100 percent of the common stock of ChipTech Company for $670,000 in cash and other fair-value consideration. ChipTechs fair value was allocated among its...
-
Marco Company shows the following costs for three jobs worked on in April. Job 3 0 6 Job 3 0 7 Job 3 0 8 Balances on March 3 1 Direct materials used ( in March ) $ 3 1 , 8 0 0 $ 3 7 , 8 0 0 Direct...
-
Three industrial sites are considered for locating manufacturing plants. The plants send their supplies to three customers. The supply at the plants, the demand at the customers, and the unit...
-
The standard cost sheet for a product is shown. Manufacturing Costs Standard price Standard Quantity Standard Cost per unit Direct materials $4.50 per pound 5.60 pounds $ 25.20 Direct labor $11.51...
-
Why might some JIT inventory management approaches not be sustainable from an environmental perspective?
-
One hundred shares of Visa were purchased five years ago at \($40\) per share and sold last month at \($135\) per share. This transaction generated a capital gain from the sale. a) True b) False
-
You just learned about operations, production, and supply chains. Consider how this content relates to other areas of business. What information would you need to plan for how production and supply...
-
A democratic leader would a. challenge every decision. b. take a hands-off approach to management. c. believe in strong involvement of employee teams. d. be very important to a company experiencing a...
-
Hannah Gilpin is the controller of Blakemore Auto Glass, a division of Eastern Glass and Window. Her division has been under pressure to improve its divisional operating income. Currently, divisions...
-
What is the point of multiplying by a conjugate For example for integrals , I know its good for getting to substitute trig identities, aside from that how will I know when to multiply by the...
-
Refrigerant-134a enters an adiabatic compressor as saturated vapor at 120 kPa at a rate of 0.3 m3/min and exits at 1-MPa pressure. If the isentropic efficiency of the compressor is 80 percent,...
-
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 probability experiment consists of rolling a single fair die. (a) Identify the outcomes of the probability experiment. (b) Determine the sample space. (c) Define the event E = roll an even number....
-
Sophia has three tickets to a concert, but Yolanda, Michael, Kevin, and Marissa all want to go to the concert with her. To be fair, Sophia randomly selects the two people who can go with her. (a)...
-
A pair of fair dice is rolled. Fair die are die where each outcome is equally likely. (a) Compute the probability of rolling a seven. (b) Compute the probability of rolling snake eyes; that is,...
Study smarter with the SolutionInn App