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

  Develop class templates for administrative employees

Develop classes or class templates for the following: Administrative Employees are paid a salary, but they also receive a bonus at regular intervals during the year. Add a class "Administrator" to the Employee class hierarchy.

  Design a website to allow calculation of areas

Design a website to permit calculation of areas. A radio button list can be used to allow the user select what type of area to be calculated. Once the selection is done, the input text boxes should be displayed with the proper labels.

  Pseudocode for a program to solve mathematical problem

Pseudocode for a program to solve the following problem. A student borrows $3,000 at an interest rate 2% per month on the unpaid balance.

  Create basic function which performs simple operation

Create basic function which performs simple operation. Write implementation for this function and then write second function which overloads the first. Describe how each of your functions could be invoked.

  Write program to calculate distance and time hurricane take

Write C++ program that will calculate the distance and time it will take (days/hours) for hurricane to reach Ft. Lauderdale if: Hurricane is at coordinates 16 N, 64 W, just SE of South Fla. off in Atlantic, with a speed of 20 mph.

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Program to output circle-s radius-diameter-circumference

Write a program to prompt the user to enter center and a point on circle. Program must then output circle's radius, diameter, circumference, and area.

  Develop procedure to returns recent order information

Develop a procedure that returns the most recent order information for aparticular basket. This procedure must determine most recent stage entry from the BB_BASKETSTATUS table

  Allows the user to enter the cost for an item

Write a program that allows the user to enter the cost for an item and the number of that item ordered.

  Write program to prints question do you want to continue

Write a program which prints question"do you want to continue?"and reads user input. if user input is"y", "yes", "ok", "sure", or "why not?" , print out "ok".

  Minimize the accessibility of classes and members

Why is this correct/when is this the right idea and Minimize the accessibility of classes and members

  Write void function which reads game-s parameters from file

Write a void function which reads game's parameters from file. Function validates te parameters. If parameters are "bad" the function assigns default values to parameters.

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