Source |
CodingSec |
Identifiant |
111540 |
Date de publication |
2016-09-22 18:00:34 (vue: 2016-09-22 18:00:34) |
Titre |
How to check the validity of the data using javascript (Recyclage) |
Texte |
One of the best uses of client-side JavaScript is the form validation. The input given by the user can be validated either on the client-side or on the server-side. By performing validation on the client-side using JavaScript, the advantages are less load on the server, saving network bandwidth and quicker response for the users. Form input can be validated using different events, but the most common event used is submit i.e when the submit button is clicked. Corresponding attribute to be used is onsubmit of the form tag. Let's consider a simple form as shown below: 1 2 3 4
|
Envoyé |
Oui |
Condensat |
advantages appeared are attribute bandwidth below: best but button can check clicked client coding common consider corresponding data different either event events first form given how input javascript less let load most network one onsubmit performing post quicker response saving security server shown side simple submit tag used user users uses using validated validation validity when |
Tags |
|
Stories |
|
Notes |
|
Move |
|
Source |
CodingSec |
Identifiant |
4193 |
Date de publication |
2016-07-16 16:00:02 (vue: 2016-07-16 16:00:02) |
Titre |
How to perform data validation in javascript |
Texte |
One of the best uses of client-side JavaScript is the form validation. The input given by the user can be validated either on the client-side or on the server-side. By performing validation on the client-side using JavaScript, the advantages are less load on the server, saving network bandwidth and quicker response for the users. Form input can be validated using different events, but the most common event used is submit i.e when the submit button is clicked. Corresponding attribute to be used is onsubmit of the form tag. Let's consider a simple form as shown below: //HTML Code <html> <head> |
Envoyé |
Oui |
Condensat |
//html advantages appeared are attribute bandwidth below: best but button can clicked client code coding common consider corresponding data different either event events first form given how input javascript less let load most network one onsubmit perform performing post quicker response saving security server shown side simple submit tag used user users uses using validated validation when     <head> |
Tags |
|
Stories |
|
Notes |
|
Move |
|