• Post Reply Bookmark Topic Watch Topic
  • New Topic

alternattive to usage of javscript

 
Jeyakumar Easwaramoorthy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using javascript for client side validation,but the client wants not to use javascript.Could anyone give me the solution?.
thanks
Jeyakumar
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without Javascript, you don't do client-side validation.
[ October 27, 2006: Message edited by: Bear Bibeault ]
 
Rusty Smythe
Ranch Hand
Posts: 93
Mac Objective C Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't want to use client-side validation anyway, except for user convenience (such as immediate feedback).

Any user can bypass your client-side validation any time. The only validation that is guaranteed to run is server-side. It is generally good practice to assume that all data you are receiving from the client will be poor data: improperly formatted (e.g., 2.000,40 instead of 2,000.40 or vice versa), incorrectly typed (e.g., alpha instead of numeric), and out of bounds (e.g., a date of 2006-20-20). Make the effort to handle such general problems, and your validation will be able to handle most problems.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rusty Smythe:
You don't want to use client-side validation anyway


I'd re-word this is as: "You don't want to rely on client-side validation ..."

Client-side validation is an important usability tool and should not be skipped just because it cannot be relied upon.

But yes, it is mandatory that all data be validated on the server.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!