| Author |
what happens if i diable javascript in my browser?
|
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
hi, i am using clientside validation for filling up registration form so if the user just disable the javascript then it will be very worst condition at the server side so is ther any other way to overcome this problem other than serverside validation please help me out thanks in advance
|
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
|
You should never rely on client-side validation. Always validate on the server. Client-side validation is only to be nice to the user.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
Originally posted by Bear Bibeault: You should never rely on client-side validation. Always validate on the server. Client-side validation is only to be nice to the user.
ok well, then what is the use of javascript? so you mean ther is no importance of javascript if we are not using javascript in client side validation then where actually is used ?
|
 |
Chetan Parekh
Ranch Hand
Joined: Sep 16, 2004
Posts: 3636
|
|
|
What Bear Bibeault is trying to say is that "You should never reply on client-side validation". Means you should have server site validation aslo along with the client side validation.
|
My blood is tested +ve for Java.
|
 |
Martin Simons
Ranch Hand
Joined: Mar 02, 2006
Posts: 196
|
|
|
In other words, you can use JavaScript for whatever you want on the client, but do not make it so that the server side of the application (the JSP or Servlet) depends on whatever the JavaScript may do.
|
 |
GS Chidam
Ranch Hand
Joined: Jul 07, 2006
Posts: 34
|
|
What Bear Bibeault is trying to say is correct, always you cannot depends on client side validation using javascript. You can do client side validation, and also you need server side validation. If you only depends on javascript validation, it may fail in the penetration test(Man Middle attack)
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56191
|
|
|
Exactly. Client-side validation is great for giving the user immediate feedback, but you cannot depend upon it to validate your data or to provide security,
|
 |
 |
|
|
subject: what happens if i diable javascript in my browser?
|
|
|