Which one is the better tool for client side validation? I am using java script .Can any one suggests which one is the better?
NJ website development
VISIT newagesmb.com
What is the difference between VB script and Java script?
Started by newage123, Oct 07 2008 10:28 PM
8 replies to this topic
#1
Posted 07 October 2008 - 10:28 PM
|
|
|
#2
Posted 08 October 2008 - 07:21 AM
I am unfamiliar with any other types of client side validation.
However, why not use a server side validation and automatically fill in the forum on invalid submissions if you want a sleeker method?
However, why not use a server side validation and automatically fill in the forum on invalid submissions if you want a sleeker method?
#3
Posted 08 October 2008 - 07:54 AM
VBScript only runs under IE, which means over 20% of your potential visitors will not be able to run it. JavaScript runs under all modern browsers, though it requires some tweaking for IE. I don't know of any serious web-developers who use VBScript for client-side scripting.
#4
Posted 09 October 2008 - 11:35 AM
morefood2001 said:
However, why not use a server side validation and automatically fill in the forum on invalid submissions if you want a sleeker method?
#5
Posted 10 October 2008 - 09:02 PM
Xav, that is true, it is much slower.
However I've found that with some sites, javascript doesn't quite work right (plus I suck at JS), so when I make a site, I want it to work with as many browsers as possible and make it as easy on myself as possible.
However I've found that with some sites, javascript doesn't quite work right (plus I suck at JS), so when I make a site, I want it to work with as many browsers as possible and make it as easy on myself as possible.
#6
Posted 11 October 2008 - 05:08 AM
Doing JS validation isn't that hard... it's just a matter of learning its quirks (and it DOES have some quirks). Testing it in FF and IE is usually enough, as that covers the two biggest flavors of JS, which is really more of a distinction on the DOM and Event objects.
#7
Posted 14 November 2008 - 12:27 AM
If you want to be able to control your visitors input, you should both do a clientside and a serverside validation.
The client side is only to make it easy for the visitor, serverside is the actually validation.
It's possible that the user turn off javascript in his/her browser, then only serverside would do any good.
:)
The client side is only to make it easy for the visitor, serverside is the actually validation.
It's possible that the user turn off javascript in his/her browser, then only serverside would do any good.
:)
Edited by __ak, 14 November 2008 - 02:16 AM.
#8
Posted 14 November 2008 - 06:54 AM
You can also create a site so that if the user turns off javascript, they cannot submit a form. Whether this is a good or bad technique is up to you.


Sign In
Create Account

Back to top









