Re: HTML_QuickForm2: BackgroundText element
| From: | Michael Gauthier | Date: | Wed, 12 May 2010 21:16:24 +0000 |
| Subject: | Re: HTML_QuickForm2: BackgroundText element | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-53475@lists.php.net to get a copy of this message | ||
Hi Christian,
On Wed, 2010-05-12 at 10:05 +0200, Christian Weiske wrote:
> Hi Alexey,
>
>
> > >> I made a custom element for QuickForm2, BackgroundText:
> > >>
> > >> http://demo.cweiske.de/qf2-things/demo-backgroundtext.php
> > > Is that an element that would fit into the QF2 package?
>
> > The element is useful, but I'd prefer having it in a separate
> > package, due to QuickForm 3.x experiences (e.g. hierselect was
> > rewritten several times and right now needs yet another rewrite:
> > http://pear.php.net/bugs/bug.php?id=16603)
>
> Ok. Shall every single additional element be a separate package? That
> could give us some clutter, but maybe that's ok.
>
> Until I propose it, here is the code:
> http://github.com/cweiske/HTML_QuickForm2_BackgroundText
>
> I am also working on a captcha element:
> http://github.com/cweiske/HTML_QuickForm2_Captcha
>
> > As for the changes you proposed in pear-general, I hope I'll be able
> > to implement them in the near future.
> Great. May I assist with patches? For which features?
>
FWIW, I just committed similar feature to the Mozilla Website:
http://viewvc.svn.mozilla.org/vc?revision=67129&view=revision
It's a bit more generic and has the advantage of HTML5 support and not
submitting the placeholder text if no text is entered. Feel free to
steal bits from it!
Cheers,
Mike