Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Javascript form Live Validation » Disable Submit?
Search Topic:
Uniqs:
89
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Post a:
Post a:
AuthorAll Replies


yock
TFTC
Premium
join:2000-11-21
Fairfield, OH

Disable Submit?

Couldn't you disable posting until the client-side validation is satisfied? I know this violates the "fail gracefully" principle of web design, but relying on client-side validation already does that anyway.
--
Laughter is the closest distance between two people. --Victor Borge
"The opposite of war isn't peace, it's creation."


justin
Australian
join:1999-05-28
Brooklyn, NY

Host:
IPv6
Business Connectiv..
Home/Office setup ..
Console/Handheld g..
Console Tech
It would be very difficult for the server-side to know for sure a client-side submit has been validated by a browser based library it has no control over. Anything javascript did as a trick such as passing back a token with the form saying "I checked this data and it is ok" could easily be copied as well.
You can't escape having to validate all fields all over again in PHP or Ruby or Perl or whatever, and then when you DO find a problem do you just reject the form silently, or do you re-display the form with neat error messages? which kind of makes the whole as-you-type validation redundant.

I suppose javascript on the server side is inevitable. If a web server integrated client and server side javascript into one seamless package you'd only be maintaining one set of code - the form could be validated twice by the same code.


pog
Premium
join:2004-06-03
Kihei, HI
·Hawaiian Telcom

Maybe they could come up with some neat examples of PHP using the same criteria to generate the JavaScript for the client as well as (re)validate on the server?

IOW, /form.php requested without variables returns the form. The submit is back to /form.php but the presence of post/get variables triggers the validation?

I dunno but it should allow you to look kill both birds with the one stone.

Anyway, LiveValidation doesn't seem to address fields that get overlooked... for eg, the first example requires that text be entered. Nothing stood out to alert me until I typed and then erased. Surely, skipping fields is as big a problem as actual bad data entry?
--
My Site
Forums » Javascript form Live Validation


Saturday, 28-Nov 00:04:13 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [121] Time Warner Cable Fires Broadside At Broadcasters
· [112] New AT&T Ad Campaign Hits Back At Verizon
· [95] Apple Joins AT&T Verizon Snark Fest
· [87] New Bill Takes Aim At Higher Verizon ETFs
· [70] TiVo Sees Record Customer Losses
· [69] In-Flight Internet Headed For Bumpy Landing?
· [63] Verizon CEO: Hulu Will Be Dead Soon
· [61] Thanksgiving Open Thread
· [40] EFF Wages War On Fine Print
· [40] Weekend Open Thread
Most people now reading
· Windows 7 boot manager editing questions [Microsoft Help]
· Newegg Black Friday Sale started [Users Find Hot Deals]
· HOW-TO: QoS and Tomato (fixes "choppy voice") [MagicJack]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· What to use while demonoid is down? [Filesharing Software]
· So we need a legitimate reason to use a lot of bandwidth? [TekSavvy]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· Once infected, Impossible to detect [Security]
· IPComms Free DIDs now with sip registration maybe?? [VOIP Tech Chat]
· [ PVP] 3.2 DK PvP D/W Spec... [World of Warcraft]