Loading
Home › Computer Science Help › creating a page that will validate a form and store the f...
Status: Completed

creating a page that will validate a form and store the form values into a cookie file.

Date Posted: 08/05/2020
Category: Computer Science
Due Date: 12/05/2020
Instruction
CIS154 - Assignment #5 INSTRUCTIONS: You will be creating a page that will validate a form and store the form values into a cookie file. The values saved into a cookie file will then be displayed on another page. You may use traditional JavaScript like we did in the class demo, or you may use jQuery if you'd like . YOU WILL NEED TO CREATE A MINIMUM OF THE FOLLOWING: A text box that asks for the viewer's name You must create a validation on this text box to ensure that it's not empty and that the information entered only consists of letters. A text box that asks for a number You must create a validation on this box to ensure that it's not empty AND that only a number has been entered (no characters or symbols!). I recommend that you use the \D metacharacter to rule out characters/symbols other than numbers. A text box requesting the viewer to input something starting with a certain letter(s) OR ending with a certain letter(s) (see the two text boxes on my sample page... one of which requests the user to input a verb ending in ing and the other which requests the user to input something starting with the letter B. I created two text boxes for this requirement, but you are only required to create one.) You must create a validation on this text box to ensure that it's not empty AND that the text ends OR begins with the letters of your choice. You can use the substring method for this and you may also have to use the length property. Or you can instead use the appropriate metacharacter to achieve this (I'll let you search for it on the expressions handout). Radio buttons OR a selection menu. This will be used to eventually display an image on your other page as well as display the name relating to the image. For example, if I wanted to display an image with the name of scotland.gif, I would also want to display the word Scotland. The easiest way to do this is to create two variables. One variable will hold the value of the radio button/selection menu option, and the other variable will hold the value plus the concatenated .gif or .jpg extension. You will need to have a minimum of four options for the radio buttons or the selection menu. You must create a validation to make sure that something has been selected. When you click the submit button, the form check will be done at that time (this is where you do the series of if statements that gather the values of the form elements and checks to see if what was entered is correct). If the viewer does not properly enter the requested information, you must use red text (like I showed you in the class demo) next to the form element where the error is located to let the viewer know that a correction is needed. Once a correction has been submitted, the red text needs to disappear (just like we did in the class demo) Once the form checks out okay, you will need to call a function (at the bottom of the form check function like we did in class) that will run code the that creates the cookie information. When this cookie making function runs, the items entered/selected in the form will be saved into a cookie file and window.location will be used to go to another page that will read the values back from the cookie file and display them on that page. DO NOT USE window.open()!!!!! ***Remember, you will ultimately have five different values that will need to be saved into the cookie file, read from the cookie file, and then displayed on a separate page To summarize, the five things that will be saved into the cookie file and displayed on the separate page are: The persons name (see #1 above), a number (see #2 above), another value that starts or ends with certain letters of your choice (see #3 above), an image (see #4 above), and text that relates to the image (see #4 on this page). ***For 5 points extra credit, place a function on the main page (the form page) that checks to see if cookie information has already been saved and if it has, display some text that indicates that the user has already entered information from a previous session. For example, if you enter information at my example page and click the submit button, then later on you go back to my main page, you will see some text at the top that says "You have already won a prize! Click here to view your prize." This is extra credit and you may not ask me for help with this. NOTE: The Expressions Handout over in the Canvas class handouts module, the strings demo, and the form checking/cookie demo will help with this assignment. Assignment Example: You will find an example of this assignment at http://staffwww.fullcoll.edu/bterry/cis154/assignmentExamples/cis154a5/cis154a5.html File Name and Submission: Please save the main file with the form elements/form checking as a5.htm. You can save the other page with whatever name you'd like. Please submit the following files to the assignment #5 submission box over at Canvas: The a5.htm document The html document that displays the information from the cookie file. All images used The external .js file that contains the code for the hyperlink rollovers. Any other external .js files or external .css files used for this assignment Please .zip all the files listed above into ONE .zip archive. This is a requirement!! If you do not .zip your files down, there will be an automatic 5 point deduction. If you do not include all files as listed above, point deductions will vary depending on which file(s) you failed to include. THERE WILL BE NO LATE ASSIGNMENTS ACCEPTED AFTER THE GRACE DATE. THERE ARE NO EXCEPTIONS TO THIS!!!
Attached
No File uploaded yet.
Bidders
ExcellentTutor 6 years, 4 months ago
Rated 9.09 earned 174531.76 around 5422 assignments.
Hello, Consider hiring me to do your assignment. I work fast, pay close attention to the instructions, and deliver a plagiarism-free paper. My price is also negotiable to accommodate your budget. Talk to me. Thank you.
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
surrogatewriter 6 years, 4 months ago
Rated 9.31 earned 75264.37 around 2854 assignments.
Hey dear. Thanks for chosing me, quality assured! I have done such project before and I will deliver on time!
$140.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
highquality 6 years, 4 months ago
Rated 8.77 earned 11734.44 around 327 assignments.
Dear client, I have read and understood the task requirements and I can assure you that I will deliver a WELL-RESEARCHED and a HIGH QUALITY paper BEFORE the deadline. In addition, I promise to deliver a 100% plagiarism free paper that meets all your expectations. Kindly assent to my bid. Thank you in advance
$500.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
truewriter 6 years, 4 months ago
Rated 9.26 earned 20430.87 around 562 assignments.
Greetings buddy! I am a professional writer, trainer, programmer and editor with more than five years experience. Have my assurance that this assignment will be delivered EVEN BEFORE THE DUE TIME.NO PLAGIARISM AT ALL. I follow instructions as outlined. I don’t disappoint . You can trust me to deliver a well-researched and scholarly assignment to you.
$200.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
expert4u 6 years, 4 months ago
Rated 9.0 earned 77109.21 around 2331 assignments.
Hello, Expert4u here. I am a top writer with more than 7 years of experience in this industry. Award me this project and you will be assured of quality work. Thank you
$300.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
profjoseph 6 years, 4 months ago
Rated 9.35 earned 54108.42 around 1732 assignments.
Hi comrade!, I will help you to do this assignment in the best way possible. I will follow all the instructions strictly to ensure that i submit to you quality, perfect and timely work free from plagiarism. Thanks in advance.
$289.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
davylast 6 years, 4 months ago
Rated 9.34 earned 15171.62 around 551 assignments.
Hello, I have read the instructions and clearly understood what the assignment. I will provide quality work within the proposed deadline. Kindly consider my bid and assign me the task. Thank you
$150.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
COMMITEDTUTOR 6 years, 4 months ago
Rated 9.18 earned 5387.52 around 193 assignments.
Hi, I have significant experience with various kinds of papers. I’m really interested in your assignment and I would like to have the chance to work on this task. I hope you can send me additional details for this. Contact me ASAP so we can discuss more about this.
$240.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Essaymasters 6 years, 4 months ago
Rated 8.94 earned 80799.14 around 2500 assignments.
assign this to me...thanks in advance
$100.00
  • being my area of expertise i promise u nothing but quality work
    Essaymasters | May 08, 2020, 16:47 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
richwhite 6 years, 4 months ago
Rated 9.35 earned 20716.09 around 553 assignments.
Hello. Kindly consider my bid and rest assured I will deliver the best work; desired high quality. I have reviewed the instructions, and the paper falls under my specialization, and I will do thorough research to ensure it fits all the academic standards. Moreover, I have studied the unit in my course degree and done related papers in previous semesters thus you can expect the most real work from me. My work is always plagiarism free, delivered before the deadline and good graded_96% and above. Once assigned, I always maintain regular communication until you get the desired final result you ordered for. Please review my profile previous clients’ testimonial reviews for proof of my capabilities. Kind regards.
$300.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
WritingPartner 6 years, 4 months ago
Rated 9.31 earned 25238.65 around 819 assignments.
Hello dear friend, I'm online NOW and I'm happy to help you. I would like to express my interest in doing your assignment. I will go through your summary and instruction carefully and do your task. I promise to commit my skills and the great experience to guarantee you a top-notch quality paper, with zero grammatical errors, and a 100% free from PLAGIARISM. Besides my skill and experience, I respond promptly to my client and provide a quick turnaround. Kindly hire me, and I’ll make you proud. I’m looking forward to working with you. Thank you!
$200.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Javawriter 6 years, 4 months ago
Rated 8.81 earned 69150.66 around 2092 assignments.
Can I help you friend?
$100.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Vinniax 6 years, 4 months ago
Rated 9.34 earned 13276.58 around 356 assignments.
I am a pro in developing web-based programs and I stand in the best position to help you in this work. Kindly award me the bid as I have a lot of knowledge in java javascript, j queries, etc and other tools needed to meet full realization of this project. Thank and stay safe.
$178.00
  • Please assign me this order and you wont regeret. please please please
    Vinniax | May 08, 2020, 16:20 PM
  • Please have a look at my profile.
    Vinniax | May 08, 2020, 16:20 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
smartestwriter 6 years, 4 months ago
Rated 9.54 earned 25983.04 around 898 assignments.
Hello dearest customer, I have gone through the instructions on your assignment and understood them. I will follow the instructions keenly and support the paper with credible in-text citations and references. I will deliver the homework in a timely manner with zero plagiarism. Kindly assign the homework to me and I will not let you down. Thank you in advance.
$240.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
phoniextutor 6 years, 4 months ago
Rated 8.98 earned 50856.21 around 1767 assignments.
I will deliver HIGH QUALITY and PLAGIARISM FREE WORK for you. Customer satisfaction is my first priority. BE ASSURED YOU ARE IN GOOD HANDS. Kindly consider my REQUEST.
$40.00
  • I will deliver HIGH QUALITY and PLAGIARISM FREE WORK for you. Customer satisfaction is my first priority. BE ASSURED YOU ARE IN GOOD HANDS. Kindly consider my REQUEST.
    phoniextutor | May 08, 2020, 16:17 PM
  • I will deliver HIGH QUALITY and PLAGIARISM FREE WORK for you. Customer satisfaction is my first priority. BE ASSURED YOU ARE IN GOOD HANDS. Kindly consider my REQUEST.
    phoniextutor | May 08, 2020, 16:17 PM
  • Thank you I will be working on it hope you will give me a bonus
    phoniextutor | May 13, 2020, 15:56 PM
  • My friend kindly GIVE A BONUS AND RELEASE FUNDS
    phoniextutor | May 15, 2020, 06:35 AM
  • Good morning my friend kindly give a bonus and release the funds
    phoniextutor | May 15, 2020, 12:10 PM
  • Hello my friend
    phoniextutor | May 15, 2020, 13:48 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
exclusivewriter 6 years, 4 months ago
Rated 9.41 earned 74860.53 around 2443 assignments.
Hey dear. Thanks for chosing me, quality assured! I have done such project before and I will deliver on time!
$140.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
sharadgreen 6 years, 4 months ago
Rated 8.96 earned 11116.00 around 211 assignments.
Hi, I am a post Graduate and PHD who had been helping the students with their assignments since last 7 years to achieve the desired goals in the academics. I am pursuing research in Management and having expertise in Maths, History,English, General science and other subjects as well, known for quality papers and best in class services with pure dedication without any plagiarism at all with mastery in citation and writing styles and always open for any suggestion that student gives to improve her paper and ready to serve always till perfection. I assure you that you would get top quality work if you assign to me, please do not forget to check my profile here which will provide you the glimpse of my efforts and top performance always. Looking forward to help you out. Thanks and Regards
$150.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}