coursework-banner

Capella IT 3215 Introduction to JavaScript Unit 4 Assignment

Capella IT 3215 Introduction to JavaScript Unit 4 Assignment

Form Field Validation and Error Messages

Overview

You have created a basic form and added interactivity to images using JavaScript. Now it is time to validate information entered into your form fields. You will use the “registration.html” file found in your Zip file. You will see that the page has a form with the following fields to allow users to register for an account. The items in parentheses are defined formatting instructions to be observed for each field.

Username* (must only contain letters and numbers)

Password* (minimum of 8 characters)

PasswordVerify* (minimum of 8 characters, must match password)

Although my specialty is cardiac nursing, I often care for patients who are either being admitted for a stroke, or they have a past medical history of a stroke. As you mentioned, time is tissue and every minute counts in these scenarios. Once brain tissue has been without oxygen for too long, there is no reversing that. My facility is stroke certified and we have an average door to CT table time of 10 minutes with our fastest time being 4 minutes. This is something we pride ourselves on since time is so important. According to the Centers for Disease Control, one in four stroke survivors have another stroke within five years (2022). This is why stroke rehabilitation is also of the utmost importance to begin as soon as possible, since some of the lasting effects can be minimized with the proper therapy.

Click here to ORDER an A++ paper from our Verified MASTERS and DOCTORATE WRITERS: Capella IT 3215 Introduction to JavaScript Unit 4 Assignment 

FirstName* (text string)

LastName* (text string)

Email (uses xxx@xxx.xxx format)

PhoneNumber (uses (xxx) xxx-xxxx format)

SignUpNewsletter (radio box for yes/no)

Tips:

JavaScript is case sensitive, so a variable named myVar is different from MyVar and myvar.

Perform your form validation testing as you go rather than all at the end. It will be much easier to fix the error if you have a smaller sequence of code to review.

Good job!

The application of statistics is and has been vast and extensive in diverse disciplinary fields. Statistics refer to numerical facts and figures. In healthcare, researchers use statistical techniques to measure the significance of study findings, identify patient trends, and promote evidence-based practice (Helbig & Ambrose, 2018). The historical application of statistics was noted in the 1600s during the first documentation of social statistical concepts that provided a discussion on probability and normal curve equations (Helbig & Ambrose, 2018). The historical evolution of nursing research fostered the application of statistics and patient data analysis in nursing practice. This evolution has birthed concepts like evidence-based practice, new treatment and medicines, and the reform of the healthcare system.

In healthcare, Nightingale was the first to apply statistics to make changes in nursing practice. She collected numerical data to identify the importance of proper sanitation in care provision and its effect on mortality rates (Helbig & Ambrose, 2018). This data enabled Nightingale to develop the Environmental theory that postulates the need for proper sanitation, ventilation, clean water to provide quality care. She used statistics during the Crimean War to identify ways to reduce the high mortality rates among the injured military. The resulting theory is used in nursing practice to date.

Another significant application of statistics in healthcare was by Edward Jenner to eradicate smallpox. In the 18th century, when there was a smallpox outbreak, Jenner, an English physician, conducted twelve experiments on the use of cowpox to cure human smallpox. The data from the clinical trials statistically provided Jenner with information to make inferences that cowpox is an effective human vaccine for smallpox. The experiment published in the Inquiry into the cause and effects of the Variolae Vaccine (Jenner, 1798) indicates these findings and the principles applied. The use of cowpox as a human vaccine is a principle used to date to develop subsequent vaccines. According to Greenwood (Greenwood, 2014), Jenner’s work influenced the scientific foundation of vaccinology and led to the eradication of smallpox in 1980.

References

Greenwood, B. (2014). The Contribution of Vaccination to Global Health: Past, Present, and Future. Philosophical Transactions of the Royal Society B, 369(1645), 1-9.

Helbig, J., & Ambrose, J. (2018). What are statistics and why are they important to health science. In G. C. (Ed.), Applied statistics for health care. Retrieved from https://lc.gcumedia.com/hlt362v/applied-statistics-for-health-care/v1.1/#/chapter/1

Jenner, E. (1798). Inquiry into the Causes and Effects of the Variolae Vaccine. The Complutense University of Madrid.

Directions

Read the assignment overview.

Use the registration.html file to add functionality to the form found on the page. The JavaScript that you write should validate each field and, if errors are made, display appropriate error messages that direct the user to complete the form properly. Once the form is completed, your script should open the confirmation page (confirmation.php).

Note: The input fields in the form with an asterisk are required fields.

Make sure to do the following:

Write JavaScript that defines that a field is required and generates an appropriate error message if the field has not been completed.

Write JavaScript to validate all input fields per the formatting definitions that the field values should be checked against (found in the overview) after each field.

Write JavaScript that displays an appropriate error correction message (next to the field) in the event a form entry error has been made.

Write a JavaScript that will default the user’s cursor to the first erroneous input field in the event that there is an input error.

Create a submit button that executes the validation when submitted.

Once completed, view your pages in each of your two selected Web browsers to see if the content renders appropriately and consistently within each. Next, verify that your code is error free using the appropriate browser specific development tool found in the Resources.

Take a screen capture of each of your validation results and save it for submission.

Example assignments: You may use the assignment examples, linked in the Resources, to give you an idea of what a Proficient or higher rating on the scoring guide would look like.

Submission Requirements

Upload your Web site files to your Web host.

Submit your work in the courseroom using a single Zip file containing the following:

Your entire Web site and all associated files.

A Word document with:

The URL to your Web site so the instructor can view your site on a live host.

A screen capture of each of your two validations that you completed using the developer tools found in the Resources.