Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to have Client-side Validation WITHOUT Javascript

simple question really (can hazard a guess but just need to make sure),

Just need a Yes/No answer as can't seem to claify anywhere.

Reason? Web pages for phones, where javascript support is "sketchy" among all mobile browsers, so doing away with anything javascript altogether and was wondering if there are any alternatives.

(Also before someone tells me off, I am of course implementing server-side validation by default, better if possible to validate stuff right away on the client as phone text entry isn't particulaly fun to go through multiple times. Also webpage is asp.net 2.0 & c# should that affect anything)

like image 267
markdigi Avatar asked Jan 13 '10 12:01

markdigi


1 Answers

No, there is not.

I mean, obviously, the more involved answer is "Yes, of course, there are other types of client-side scripting systems (Flash/Silverlight/ActiveX/etc) that can do it", but in the context of your question (phones) then the answer is No.

I do suggest, however, that you may be surprised at what phones run JavaScript. Keep it basic, and keep it such that it fails gracefully (i.e. no harm comes to the functionality of the app with JS disabled) and you'll probably be surprised at the compatibility.

like image 120
Noon Silk Avatar answered Oct 25 '22 13:10

Noon Silk