IT3215 | Programming Methods in Computer Science - Capella university

IT3215 Introduction to JavaScript Unit 05 Assignment Query Strings and Storing Persistent Information

Overview

As Web forms get longer, we very commonly see them split across multiple pages to collect all of the necessary information. There are different reasons for this. A long form can be daunting for users and a large/long form can be difficult for users to fill out on a mobile device. These forms need to be designed so that the data entered by the user on the forms on each page will be submitted to the Web server simultaneously. This makes more sense as they are part of the same data set. The problem with stateless pages is that if the user moves from one page to the next, the data entered is lost. To bypass this issue, you will need to use query strings, hidden input fields, and cookies. In this assignment you will use the previously created registration.html file to send information to a second page named confirm.html. You will write a script on that page that will save the information from the form to a cookie and then display it on a same page. If the user goes back to this confirm.html page, the page should display the user form data from the registration entry that was last entered.

Tips:

o It will help to output the array into the browser console so that you can verify that the string is being correctly parsed. Details on the browser console can be found in the Resources. o To skip having to enter data into the form each time to test, it may help to create a JavaScript function that automatically fills in the fields for you and comment it out when completed. Directions Read the Overview. Modify the "registration.html" page created in the prior assessment to send a query (that has all input field information from that form) to a second page. When the user presses submit, all of the input fields from the registration.html form will be saved into a cookie. The user should then be forwarded to a second page (confirm.html (created by you)) that will read the cookie information and display it in a name/value pair using JavaScript.

Make sure to do the following:

o Create and integrate a script on the registration.html page passes all of the input fields from the form when the submit button is pressed. o Create a confirm.html page will read in the input from the query string data from the registration.html page and store them into variables first. o Write a script that runs in response to the submit event, that saves the input from the registration.html page to a series of cookies to store each input, and opens a second page called confirm.html that reads and displays information from all the fields. o 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.

Submission Requirements

o Upload your Web site files to your Web host. o 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 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. Resources o Query Strings and Storing Persistent Information Scoring Guide. o Microsoft Edge Dev Tools. o Chrome DevTools. o Safari Web Inspector Guide. o IT3215 Web Site Zip Files.

  • Toggle Drawer
611views
4.3
(405 ratings)

Related Study Guides

Q-3 | Computer Science homework help

q-3 UnknownpHacking web servers involves gaining unauthorized access to the server that hosts a website or web application. This can be done through various techniques and vulnerabilities, and once ac...

computer-scienceinformation-systems

Discussion and replies | Computer Science homework help

2. What approach do you think may be the most effective and why? Replies In 400 words total, replying to the two posts below. Each reply must be 200 words for post 1 and post 2. A.A POST 1 Hello class...

communicationinformation-systems

Discussion board | Applied Sciences homework help

4. Role-play the interview several times with the help of a friend. Be sure you include the orientation and conclusion phases of the interview and practice the questions you plan to ask the interviewe...

information-systemseconomics

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

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

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...

art-designcomputer-science

IT3215 | Programming Methods in Computer Science - Capella university

4. Jen Stevens Hint: Use the splice function in order to remove a specific item from the array. Tip: The array index starts at 0, so when displaying the index, you will need to add 1 to the index valu...

information-systemshuman-resources

[Solved] MAG Petroleum is an SME specialising in t | SolutionInn

5. Recommend when the system that you have developed should be updated to account for new sales data that will occur. Assume you have a computer software package. Table 1: Lubricant Sales for MAG PETR...

computer-scienceeconomics

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