IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 1 Assignment Using Variables in a Form Expectations

The JavaScript that you use in the course assignments should:

Render and function properly in at least two of the following browsers: Chrome, Firefox, Edge, and Safari. Be verified to be error free, well documented with comments, and appropriately constructed.

Overview

In this assignment, use the Web page called “invitation.html” found in the Required Resources (in the zip file called IT-FP3215.zip) to add functionality to an interactive form that generates an invitation to volunteers for an event. The file will have the following invitation message placeholder and a form below it. You will add JavaScript functionality to the form that will allow a user to dynamically fill out the invitation. Hello __recipientName_____! You have been invited to volunteer for an event held on July 1st. Please respond to this email to sign up as a volunteer. Thanks! ___hostName___

Hints:

The placeholders (for example the “recipientName”) will need to be set up as elements with an assigned id attribute. Prompt the user to enter in the recipient’s name, and host name (Your name). Using JavaScript, replace those elements dynamically with what the user has entered in the form. Use the form’s input fields (once submitted) to store the values to JavaScript variables. Then manipulate the DOM to replace the element content dynamically. To get you started, in your .js file, you need to first declare the variable names such as: varmyRecipientName;

Then, you would need to set the variable to the input field’s value:

myRecipientName = document.getElementById(“recipientNameInput”).value; Next, you would then need to set the innerHTML of the span element of the corresponding name like: document.getElementById(“recipientNamePlaceholder”).innerHTML = myRecipientName; Note on your submit button, a JavaScript event handler has been defined on the submit of the form. Notice that it has a return false to prevent the form from actually submitting. Hint: See what happens when you remove the “return false” from the JavaScript code. Tip: Variable names cannot include any special characters or spaces. They cannot start with a number. They also cannot be any of JavaScript’s reserved words. Remember as well that JavaScript is case sensitive. Preparation Download and unzip the IT-FP3215.zip file found in the Required Resources. It contains the initial framework for the site. All of the HTML files are located in the root directory. Images are placed in the images subdirectory; CSS files are placed under the css subdirectory. Your JavaScript external files should be placed under the “js” subdirector. When you submit your work, be sure to zip up the entire folder, including all of the ancillary files such as the images, CSS, and JavaScript code. Note: This course requires you to use a text editor to complete your work. There are many free open source options on the Internet from which you may choose. See the Suggested Resources for links to free, open source text editors. Directions Read the Overview. Use the invitation.html file in the Resources as a template for completing this assessment. Write JavaScript that enables the invitation to be dynamically completed using the form. Make sure to do each of the following: Declare variables to store the input field data. Store the input field data into the variables on form submit. Manipulate the DOM to replace placeholder data with the variables. Write developer comments to describe the variables being declared and explain the functions and logical blocks of JavaScript code. 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 all your website files to a hosting service of your choice. Two free sites to consider are Freehosting.com or 000webhost.com. See the Suggested Resources for links. Submit your work in the courseroom using a single Zip file containing the following: Your entire Web site (including the updated “invitation.html” file).

A Word document with:

The url to your Web site so faculty 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. IT3215 Introduction to JavaScript Unit 2 Assignment Using Arrays and Loops

Overview

For this assignment, you will use the volunteer.html file to create a more effective process for managing the volunteer list by using arrays and loops. The web application will make use of the volunteer.js file and allow the user to add volunteers, delete volunteers, clear the list of volunteers as well as sort the volunteers. Some of the functionality has been created to start you off so that you can see how it is all integrated. You will be focusing on the code to delete the volunteer as well as alter the volunteer list to add some formatting on the output. Functionality is also included to be able to sort based on the volunteer’s last name. Directions Use the volunteer.html file to add functionality to our form. This new functionality should allow the user to enter in volunteers to be added as well as delete volunteers from the list by re-entering in their name. The volunteer list should also be altered to use a looping structure to display a running count of volunteers beside each name (starting at 1) beside each name similar to the following display:

3,175views
4.5
(141 ratings)

Related Study Guides

IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 1 Discussion DQ1 Getting Started With JavaScript JavaScript has been one of the most popular scripting languages for dynamic interactivity. It is a completely di...

communicationart-design

Need discussion in 15 hours or less | Education homework help

NEED DISCUSSION IN 15 HOURS or LESS NeNe1994PLEASE UPLOAD ALL 4 DISCUSSION RESPONSE SEPARATELY!!!!! - a year ago - 20 Week5Discussion1Response.pdf Week5Discussion2Response.pdf Week5Discussion1Response...

communicationeducation

IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 1 Discussion DQ1 Getting Started With JavaScript JavaScript has been one of the most popular scripting languages for dynamic interactivity. It is a completely di...

art-designcommunication

[SOLVED] Brexit and Rolls-Roycel Rolls said it remains committed to the UK | SolutionInn

Question: Brexit and Rolls-Roycel Rolls said it remains committed to the UK where we are headquartered, directly employ over 23,000 talented and committed workers and where Brexit and Rolls-Roycel Rol...

art-designcommunication

IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 05 Discussion DQ1 Cookies: Storing and Passing Information On their own, HTML and CSS are unable to store user information, so once the Web browser is closed, an...

communicationart-design

IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 04 Discussion DQ1 Validating Form Input Data Working with and processing bad data generally means that a lot of work will have to be done to clean up the data on...

communicationart-design

IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 4 Discussion DQ1 Validating Form Input Data Working with and processing bad data generally means that a lot of work will have to be done to clean up the data on...

computer-sciencesociology

NSG6435 Week 1 | General Health Care in Health Care - South university

NSG6435 Practicum III Family Health Paediatrics Week 1 Assignment APEA FNP REVIEW MODULES – GROWTH & DEVELOPMENT Hide Assignment Information Instructions APEA FNP REVIEW MODULES – GROWTH & DEVELOPMENT...

art-designinformation-systems

Need Help With A Similar Question?

Our experts deliver perfect solutions with guaranteed A+ grades

A+
Student Grade
98%
Success Rate
12h
Delivery Time
Join 1,000+ students who got their perfect solutions
Rated 4.9/5 by satisfied students

Need Help With This Question?

Academic Expert

Subject Matter Specialist

98%
Success Rate
24/7
Support

Why Students Trust Us

  • PhD-Level Expertise
  • Original Work Guarantee
  • Better Grade or Free

"Got an A+ on my assignment. Exactly what I needed!"

Recent Student