#19: Automatically generate JavaScript form validation
--------------------------+-------------------------------------------------
   Reporter:  adrian      |                Owner:  adrian                
     Status:  new         |            Component:  Validators            
    Version:  new-admin   |           Resolution:                        
   Keywords:  validators  |                Stage:  Design decision needed
  Has_patch:  0           |           Needs_docs:  0                     
Needs_tests:  0           |   Needs_better_patch:  0                     
--------------------------+-------------------------------------------------
Changes (by [EMAIL PROTECTED]):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 vini.reis: The benefit of using server-side validation in general is
 twofold:
  * Code duplication is reduced.  Something doesn't have to be written in
 both Python and Javascript in order to work.
  * Some inputs may not be validatable client-side (e.g. validating that a
 Latitude/Longitude coordinate was over land and not over water, which
 would require a GIS database).
 
 That being said, there are certainly issues with server-side validation:
  * A lot more traffic for the `XmlHttpRequest`s that could have been
 addressed entirely at the client.
  * Multi-input validation either wouldn't get done, or would have to be
 triggered on all changes.
 
 I am not familiar with Django's admin interface, but something like this
 would be quite useful in any Django-powered application, so it could be
 worth developing generically.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/19#comment:10>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to