Re: HTML_Form vs Quickforms

From: Date: Fri, 10 Jan 2003 13:17:28 +0000
Subject: Re: HTML_Form vs Quickforms
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-12236@lists.php.net to get a copy of this message
<jeroen@terena.nl> wrote : >>> 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) >> >> The best way to detect browser is to use javascript on the client side, if >> you use javascript to write the image that you click on, then you can >> silently degrade in non-js browsers. > > Yes okay, I'll focus on that approach then. NN4 and other older/crappy > browsers > will just get a textbox, while newer browsers will see an icon they can click > to bring up the calendar (which is a pop layer thing) Or you can use the Net_Detect package but I haven't tested it yet. About the name, call it HTML_QuickForm_dyncalendar. Ex: $form->addElement('dyncalendar', ...); In case you detect that this element is not supported by the client browser, you could swith dyncalendar for a more standard element like selects or textfields... Just an idea. There is also a date element but it is still beta and needs some more work AFAIR. Cheers, Bertrand Mansion Mamasam

« previous php.pear.dev (#12236) next »