I was not sure how to consider this. Is it an error?
Maybe the right thing would be to return an empty string.
It's up to you to decide whether this is an error... If it is, return a PEAR_Error object, if it isn't you should probably just add a text box to the form without any JS.
OK, I think this is not really an error, I follow your advice to just add the text box (see new example 3).
You can also help users by automatically registering (using
HTML_QuickForm::registerElementType()) the element type on class
include.
If this element is added to HTML_QuickForm, I think it will be registered in HTML_QuickForm constructor.
I don't follow you on this. Please elaborate.
All elements currently available in HTML_QuickForm can be used without having to include anything more than HTML_QuickForm itself, which registers the elements.
I would like QF_SelectFilter to be available as well.
If it is not possible, or wanted, I will add the "automagical" registration.
-Nicolas
--
Nicolas "Brush" HOIZEY
Clever Age : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
phpMyChat : http://phpmychat.sf.net/