Re: QuickForm HTML element deprecated ?

From: Date: Mon, 29 Nov 2004 09:45:16 +0000
Subject: Re: QuickForm HTML element deprecated ?
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34635@lists.php.net to get a copy of this message
On Sat, 27 Nov 2004 12:51:39 -0800, Justin Patrin <papercrane@gmail.com> wrote: > On Sat, 27 Nov 2004 12:53:01 +0300, Alexey Borzov <borz_off@cs.msu.su> wrote: > > > > Hi, > > > > Justin Patrin wrote: > > >>the "static" element. > > > > > > But this elements adds HTML. The html element allows you to add > > > whatever HTML you want. I use this currently to break up the table > > > into two columns and do other such things. It *is* useful. > > > > Just like "static" element does. It can be used in place of "html" for > > such > > tasks, just clear the element templates. > > > > But then all static elements won't have a template. I use static > element as they're normally used to enter text and my own elements at > times. Also, if I have to manually end and start the td and tr it > creates extra HTML and very likely will make the output look > different. I don't see any good way to make a static element behave as > an html element without changing all of the other normal static > elements. > ::sigh:: never mind, I suppose setElementTemplate can do this. I still don't understand why you don't just allow people to use the html element. It's already there and only need a name added (a feature I requested). This is much easier than creating a static element and setting an empty template for it. It's a hack either way. Leaving the already used element in there for specifically this purpose is IMHO better than forcing people to hack the templates. -- Justin Patrin

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