Prepare a contact form and validate the data in java

Assignment Help JAVA Programming
Reference no: EM13981879

Need a contact form with the following:

A form for new clients to fill out and submit The form must contain the following fields:

o First Name

o Last Name

o Street Address

o City

o State

o Zip Code

o Message A button labeled "Submit" When the button is clicked, the data in the form should be validated.

Validation should confirm that all input meets the following requirements:

o All fields are required and therefore must contain some data.

o The data in the First Name field must be greater than 1 character and less than 20.

o The data in the Last Name field must be greater than or equal to three characters, and less than 20.

o The data in the State field must be exactly two characters.

If the form contains any invalid data based on the rules defined above, a "glyphicon-remove" icon should be displayed next to the field (HINT: By adding/removing one more classes to/from a span via a JavaScript, glyphicons can toggle on/off dynamically) and an alert message should be displayed instructing the user to fix the error.

o NOTE: If invalid data is corrected, the glyphicon-remove should be removed.

If all fields are validated as containing correct input, a confirm window should be displayed.

o The confirm window should include the following content: The content from all fields A request for the user to confirm the input with OK, or CANCEL to edit

o If the user selects OK in the confirm window: An alert window should be displayed indicating that the message was sent, along with a date/time stamp of the current time. The form should be reset (all text should be cleared and no glyphicons should be visible).

o If the user selected CANCEL in the confirm window: The confirm window should close and all user data should remain in the form. Format for submission: Need HTML file linked to JavaScript files.

Verified Expert

The project is about the form validation which is part of user registration. The user details were fetched as part of the registration form which is validated against some constraints. If all the fields were correct then the user will be allowed to submit the input, followed by a confirmation dialog. Once it is confirmed, the details will be saved to database.

Reference no: EM13981879

Questions Cloud

What causes migraine headache : Evaluate the causes of stroke. Discuss the differences between transient ischemic attack and cerebrovascular accidents (CVA). Discuss the types, warning signals, and treatment of CVA.
What is morality : What is morality? Morality can be defined as the principles concerning whether an action is right or wrong, or, good or bad. It is important to note that, morality can be socially or even culturally objective\
Probability of acceptance for defective percentage : A shipment of 100 pins contains some defectives. To decide whether to accept the shipment, the consumer follows a sampling plan where 15 items are cho- sen at random from the sample and tested. If the number of defectives in the sample is at ..
Calculate the angular momentum of the system : A particle of mass 0.3kg is attached to a 100cm ruler of mass 0.2kg at the 100cm mark. the meter stivk rotates on a horizontal smooth table with an angular velocity of 4rad/sec. Calculate the angular momentum of the system if the stick is pivoted ..
Prepare a contact form and validate the data in java : Prepare a contact form and validate the data in JAVA - Validation should confirm that all input meets the requirements
Probability of acceptance for defective percentage : Using the Data|Table command, tabulate the probability of acceptance for defective percentage ranging from 0% to 15% in steps of 1%.
Shape of binomial distribution for various combinations : Look at the shape of the binomial distribution for various combinations of n and p. Speci?cally, let n = 5 and try p = 0.2, 0.5, and 0.8. Repeat the same for other values of n. Can you say something about how the skewness of the distribution is affec..
Making comparisons with competitors and industry norms : The conclusion section should draw together your findings in order to make arecommendation to a potential investor in the company's shares.
Proportion of computers will fail during warranty period : a. What is the probability that a computer will fail within 12 months? b. If the company gives a warranty period of 12 months, what proportion of computers will fail during the warranty period?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Be sure to show all declarations

Write a function call that invokes function a. Be sure to show all declarations. However a complete main is not required.

  Practice using recursion with data structures

Write a recursive method in this class called hasSameStructureAs(BinaryTree tree) that returns whether or not a tree has the same structure as another tree.

  Describe the multithreading

Describe multithreading and list the reasons for using multithreading

  Write a java program to read sequences of integers

Write a Java program to read sequences of integers from a text file, build a binary search tree for each sequence by inserting numbers in the sequence one after another into the search tree, and plot a picture of the finished tree.

  Create a frame and set its layout to flowlayout

Create a frame and set its layout to FlowLayout, create two panels and add them to the frame and Each panel contains three buttons. The panel uses FlowLayout.

  Find the solution of all these java question

find the solution of all these java question

  Java program that iterates through the integers

Write a Java program that iterates through the integers from 1 to 20, computing the square of each number and writing the information to a file called squares.txt.

  What extent do images and themes of daughterhood

What extent do images and themes of daughterhood from your 19th century text influence each other?

  Implement the hashcode method

Java, every object has an equals and a hashCode method that is used, among other things, by the standard Collections library. By default both are based on an object's memory location

  Given an aerodynamic body you have learned in aerodynamics

given an aerodynamic body you have learned in aerodynamics and flight mechanics how to apply the numerical source panel

  Java tv''s newest owner! java tv is the greatest tv channel

Java TV's newest owner! Java TV is the greatest TV channel ever, and it prides itself in its 24 hour interesting ' programming'. To help you run this channel you will need to write a  dynamic  program that uses  Data Lists  to store all its TV show i..

  What is difference between if statement and switch statement

What are the problems faced by Java programmers who don't use layout managers? What is the difference between an if statement and a switch statement?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd