List Info

Thread: disabled form fields ignored by cherrypy?




disabled form fields ignored by cherrypy?
user name
2006-03-08 21:27:31
1stpoint wrote:
> I don't know if this is a new feature.  We recently
created disabled
> fields on some of our html forms.  Now when we submit
the form to CP,
> the disabled fields are not included in the
request.params.  Is this a
> filter setting or does CP not process disabled form
fields??
> 
> 
>    def readform(self, *args, **kwargs):
>         fldDict=cherrypy.request.params

As stated in the HTML specification, disabled controls
cannot be
successful:
http://www.w3.org/TR/REC-html40/interact/forms.html#
disabled

This is part of HTML, and is the responsibility of your
client(s) to
correctly omit disabled fields. You might look into
'readonly' as an
alternative to achieve immutable, yet successful, controls.



Robert Brewer
System Architect
Amor Ministries
fumanchuamor.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

disabled form fields ignored by cherrypy?
user name
2006-03-09 15:47:52
thanks Robert, as I already stated I came to the same
conclusion.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )