Write a javascript function to validate a text-field

Assignment Help Programming Languages
Reference no: EM13332746

1. Write a JavaScript function to validate a text-field on a form that is to hold an email address. Now when writing this JavaScript function bear in mind that you won't be able to fully validate it unless you manage to interrogate the server in which it's supposed to reside.This is almost impossible, so the validation should check that the contents of the text-field only looks like a valid email address.
email addresses look like the following
[email protected]
[email protected]
[email protected]
[email protected]
etc ...

Submit a html file with a form containing an email text-field, and the JavaScript code that called to validate the text-field when the form is submitted. (so I can easily test it).

2. Write a JavaScript function to validate a text field on a form which is to contain an integer, eg 2, 4567, 87612etc ... without using any built functions like IsNaN an so fourth.If the text field contains a valid number then the JavaScript function can return "true", otherwise it returns "false" as well as displaying a popup error message.

3. You have a server-side script that cannot handle any ampersands (&) in the form data. Write a function that converts all ampersands in a form field to " and " when the field loses focus (onblur).

Very important nots:

1-Provided my assignment with brief explanations for the solutions in the MS Word file.

2-Provided my assignment with the complete URL for the exercise solutions.

 

Reference no: EM13332746

Questions Cloud

What is the electric field at the origin : When a test charge q0 = 6 nC is placed at the origin, it experiences a force of 8 ? 10-4 N in the positive y direction. What is the electric field at the origin
Joint products should be processed beyond split-off point : Joint products should be processed beyond the split-off point if _____.
Compute the fundamental frequency : Three successive resonance frequencies for a certain string are 481., 518., and 555. Hz. What is the fundamental frequency
Leadership group of an organisation : Do you believe that the leadership group of an organisation can have a significant impact on how a CSR agenda and its related activities are developed and implemented?
Write a javascript function to validate a text-field : Write a JavaScript function to validate a text-field on a form that is to hold an email address. Now when writing this JavaScript function bear in mind that you won't be able to fully validate it unless you manage to interrogate the server in whic..
Which epidermal cell type is most numerous : Which epidermal cell type is most numerous? and why?
What is the second lowest frequency : What is the lowest frequency for standing waves on a wire that is 11.5 m long, has a mass of 120.0 g, and is stretched under a tension of 185.0 N
Find literature that supports the feasibility : Find literature that supports the feasibility of a hot dog business. Includes finding articles in newspapers or online that prove with statistics or general observations that the business will work in a small state/city/country.
Compute the force exerted by the hail on the roof : Hail comes straight down at a mass rate of m/?t = 0.070 kg/s and an initial velocity of v0 = -14 m/s and strikes the roof perpendicularly. calculate the force exerted by the hail on the roof

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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