0

Does JavaScript's base form validation have limitations since we know that there is an option for a user to shut off Javascript option from the browser?

Is client side base form validation is an efficient way to validate forms in a web application?

matisetorm
  • 857
  • 8
  • 21
Md. Tanvir Raihan
  • 4,075
  • 9
  • 37
  • 70
  • 4
    well, a normal way is to validate on both the client and the server side. The server side validation is the only trusted one (JS deactivation/manipulation) and hence JS validation is only a "comfort" feature for the user. Your question is probably a duplicate. – Stasik Dec 03 '14 at 07:18
  • Indeed, as @Stasik says: once on clientside for responsiveness and user experience, once more on serverside for iron-tight security. – Amadan Dec 03 '14 at 07:19
  • The client side validation is only for UI, animation and optimization but you always have to check the data in server side. – Loenix Dec 03 '14 at 07:20
  • Clients can do more than just "shut off javascript", they can send anything they feel like. Server validation isn't just nice to have, it's essential if you care what your server is processing. – RobG Dec 03 '14 at 07:40
  • Today most of the common application we use are one-page applications, which are perfectly driven by js. As efficiency is the concern, I think it will require less number of steps on validating data on the client over the server. – Manzoor Samad Sep 04 '17 at 19:25

0 Answers0