that's more code... but probably no more than writing ZF
decorators :-)
On Apr 16, 3:07 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> It can be customized. You an write your own form in HTML and still use
> SQLFROM for processing. This is one way of doing it:
>
> http://groups.google.com/group/web2py/browse_thread/thread/d09a7bbbb4...
>
> Massimo
>
> On Apr 16, 7:03 am, desfrenes <desfre...@gmail.com> wrote:
>
> > AFAIK, SQLForm is tied to a given markup since the form generation
> > involves html helpers (TR(), LABEL(), INPUT(), etc), as seen in gluon/
> > sqlhtml.py, line 412, and you cannot change it unless you fork SQLFORM
> > () (or FORM() ? ).
>
> > Other forms libraries in other frameworks and languages (see
> > Zend_Form) have a "decorator" concept which allow the user to change
> > the markup (in fact, the form render doesn't even have to be html at
> > all). It's very verbose and not that easy but at least it's feasable.
>
> > I'm not good enough python programmer to tell how difficult this would
> > be to have such a feature in web2py, but I can see this is becoming a
> > much requested feature. Massimo already made modifications so the
> > markup is now w3c valid, but making it customisable may be a whole
> > different story
>
> > On Apr 16, 9:18 am, Jason Brower <encomp...@gmail.com> wrote:
>
> > > They don't have id's either. sooo... same problem I would think.
>
> > > On Thu, 2009-04-16 at 00:09 -0700, Fran wrote:
> > > > On Apr 16, 7:18 am, Jason Brower <encomp...@gmail.com> wrote:
> > > > > I can't grab a button, like submit buttons, with jquery. At least as
> > > > > far as I can tell. I have to add a class to them. So...
> > > > > How do I add a class to buttons in my SQLForms?
>
> > > > Use the id.
> > > > ID-based selectors are faster in jQuery anyway:
> > > >http://docs.jquery.com/Selectors/id#id
>
> > > > F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---