Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


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


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

Host:
IPv6
Business Connectiv..
Home/Office setup ..
Console/Handheld g..
Console Tech
reply to yock
Re: Disable Submit?

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


Wednesday, 19-Nov 18:01:51 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9 years online! © 1999-2008 dslreports.com.
page compression OFF
Most commented news this week
· [193] Obama FCC Selection Team Won't Make AT&T Happy
· [98] DSL's Not Dead Yet
· [69] Zone Alarm Pro Free Just For Today
· [59] Harvard Law Professor Sues RIAA
· [49] Cable Grabbing 71% Of New Broadband Customers
· [47] Comcast DOCSIS 3.0 Hits Pacific Northwest In December
· [44] Comcast Offers 'Bare Bones' 768kbps VoIP Double Play
· [42] Comcast Buys San Fran Muni-Network
· [41] Spam Success: A 1 In 12.5 Million Shot
· [35] iPhone 3G Most Popular Phone
Most people now reading
· Another Hopeflicker meter maid tirade [Rants, Raves, & Praise]
· Wiring error - how serious? [Home Repair & Improvement]
· Tomato/MLPPP v3 alpha 4 released! [TekSavvy]
· Microsoft: Windows 7 ready for Christmas [Microsoft help]
· Big 3 automakers want hand outs now?! [It is the economy, stupid]
· Must Read Article (THE MANCHURIAN MICROCHIP) [Security]
· [rant] Apple can be really lacking to my special needs. [All things Macintosh]
· Xbox 360 NXE is available! [Console/Handheld games]
· Philly Metro (VHO8) Rollout Status [Verizon FIOS TV]
· [Speed] Comcast Internet is SLOW! [Comcast HSI]