#7124: Form field javascript event handler
---------------------------------------------+------------------------------
          Reporter:  MihaiD                  |         Owner:  nobody
            Status:  closed                  |     Milestone:        
         Component:  Forms                   |       Version:  SVN   
        Resolution:  wontfix                 |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by anonymous):

 i absolutely agree with you that dynamically attaching event handlers
 *should* be the way to go in most cases - BUT: on some lightweight client
 devices e.g. mobile phones, traversing the DOM with jquery et al can be
 prohibitively expensive for more complex documents (e.g. 5 sec ui freeze
 on iphone for a html doc with a 300 elements). while in these cases the
 workaround as pointed out by you can be applied, defining the event
 handler is clearly a task of the frontend designer (at least in our
 workflow) so it should be possible to do it in the template.

 i can absolutely understand that there are more important things to do,
 but just wanted to provide a real-life usecase for this request for the
 record.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7124#comment:5>
Django <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