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

  Allow customers the option of five t-shirt sizes

Allow customers the option of five T-shirt sizes and styles: XXL Short Sleeve, XL Short Sleeve, L Short Sleeve, M Short Sleeve, S Short Sleeve. Assume that each product has a unique price that is displayed when the user cliks a Buy Now button.

  Write application to inputs ten numbers from user

Write the application to inputs ten numbers from user, each number can be between 10 and 100, inclusive. As each number is read in determine if it is number already entered.

  Program to prompt teacher to input assignment number

The program must prompt teacher to input the assignment number. Score for student for that assignment will be displayed.

  Explain circumstances in which we can implement array

If you were describing the array to friend who is learning Java, how would you do so? Explain circumstances in which you could implement the array.

  Designing the site links

Company needs to be able to schedule the time of day when the connections are available for replication. Replication should not occur during peak business hours. When designing the site links, which of the following options should you use?

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Design program to calculate amount of money spend

Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day.

  Build your own maze

Build your own maze and make it so easy so i can understand it. try to use for while statement. it is an easy task so please do not make it complicated and follow the instructions that im going to post. another thing do not use the maze that in th..

  Create a class-how to cash goods-give change to customers

Write class called Cashier that directs a cashier how to cash goods and give change to customers. Typical cashier operations are as follows.

  How write the program to calculate simple matrix

How to write the program to calculate simple 3x3 spreadsheet containing integers and strings. First, input spreadsheet source values from console.

  Use one-dimensional array to solve problem

Use one-dimensional array to solve following problem. Read in 10 numbers, each of which is between 10 and 100 inclusive.

  Explain programming is designed to demonstrate the areas

This programming lab is designed to demonstrate the following areas of knowledge within C++, The difficult part is intended to be the decision-making required to both parse the file input and to correctly draw the resulting vector.

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