• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what happens if i diable javascript in my browser?

 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should never rely on client-side validation. Always validate on the server. Client-side validation is only to be nice to the user.
 
saikrishna cinux
Ranch Hand
Posts: 689
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic