是否有可能有客户端验证没有JavaScript [英] Is it possible to have Client-side Validation WITHOUT Javascript

查看:150
本文介绍了是否有可能有客户端验证没有JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题还真(可以大胆地猜测,但只需要确保)

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

需要的只是一个是/否的答案似乎无法在任何地方claify。

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

原因是什么?网页的手机,其中的JavaScript支持所有的移动浏览器之间粗略,所以废除任何的JavaScript干脆,如果有任何替代不知道。

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.

(也有人告诉我出发前,我当然在默认情况下实现服务器端验证,如果可能的话,以验证的东西马上在客户端作为手机文字输入上更好的不particulaly乐趣要经过多次。另外网页是asp.net 2.0和C#应该是什么影响)

(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)

推荐答案

没有,没有。

我的意思是,很明显,更多地参与答案是是的,当然,还有其他类型的客户端脚本系统(闪存/ Silverlight的/的ActiveX /等),可以做到这一点,但是在上下文中的问题(手机),那么答案是没有。

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.

我做的建议,但是,你可能会在什么手机运行JavaScript感到惊讶。保持它的基本的,并保持它,使得它优雅地失败(即不伤害谈到与JS禁用应用程序的功能),你可能会在兼容性感到惊讶。

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.

这篇关于是否有可能有客户端验证没有JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆