Jeff MacDonald wrote:
> greetings!
>
> On Sunday 12 August 2007 10:34 am, Magnus Hagander wrote:
> [...snipped...]
>>> $this->form->addElement('static', null, null, '<font color="red">' .
>>> gettext("Userid or password was incorrect. Please try again.") .
>>> '</font>');
>>>
>>>
>>> This should be calling to the stylesheet ;)
>> Yeah, if I knew how :) The HTML Quickforms stuff is very inflexible.
>>
>
> I am not convinced that QF is all that inflexible. try putting something into
> the "attributes" argument for the "static" element constructor:
>
> void constructor HTML_QuickForm_element::HTML_QuickForm_element ([string
> $elementName = NULL [, mixed $elementLabel = NULL [, mixed $attributes =
> NULL]]])
>
> that last parameter just might do what you want.
I tried just about every combination I could think of for that, and
didn't manage :-( But if someone knows a way to get it done, I'd
certainly prefer that.
//Magnus