Re: HTML_Form vs Quickforms
| From: | Jeroen Houben | Date: | Fri, 10 Jan 2003 12:06:25 +0000 |
| Subject: | Re: HTML_Form vs Quickforms | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12232@lists.php.net to get a copy of this message | ||
> > I'm actually working on another element for Quickforms and perhaps it could be
> > useful for other so I could email you the class when it's working properly.
> > The
> > class extends the textboxbox class is basically a textbox with a little button
> > that
> > brings up a calendar control (DHTML). It uses the Dynamic Calendar by Richard
> > Heyes
> > published at http://www.phpguru.org/dyncalendar.html.
>
> Cool, let me know when you fill confident with the code and send it to me, I
> will have a look at it and see how I can integrate this in QuickForm.
Ok. Any naming suggestions for this element? It's called dynCal now. But perphaps
"date" or just "calendar" is a better name.
Another question: at the moment the JavaScript checks if the browser can display the
DHTML calendar widget, but I prefer letting PHP do that. I could then do something
like:
if (browser_is_good_enough()) {
continue;
} else {
// create a normal Quickform::textbox element
exit;
}
Do you know of any good PHP scripts that can detect if the browser can handle DHTML
properly (preferably without using browscap.ini, because not everybody has that
installed)
Thanks
Jeroen