Home > Archive > PHP Pear > May 2005 > Re: [PEAR] FormBuilder + DataObject and checkboxes
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR] FormBuilder + DataObject and checkboxes
|
|
| Justin Patrin 2005-05-26, 8:59 pm |
| On 5/24/05, Dan Rossi <pear@electroteque.org> wrote:
> Ok thanks for the tip I have to use advcheckbox for all checkboxes. It
> would be good if this was default :)
>=20
> Here is what I have to do
>=20
> function preGenerateForm()
> {
> $this->fb_preDefElements['alive'] =3D
> HTML_QuickForm::
> createElement('advcheckbox','alive','Ali
ve',null,null,$this->alive);
> }
>=20
> :)
You shouldn't have to use advcheckbox...normal checkboxes work fine in
all of my forms. What browser are you using? What version of
FormBuilder? Have you modified it yourself?
Also, again, please stop and think before you post to the list.
Sending 4 replies to the same e-mail is annoying, wasteful, and
fragments the conversation. Think it all through and try everything
you can think of *before* you post again. If you want more immediate
help, use the IRC channel.
In addition, since you've gotten to into PEAR I'd think that you could
start looking at the source code more. It would be more helpful for
you to simply trace the code and figure out what might be wrong than
to pester us with off-the-wall questions and strange situations that
we can't understand. Figure out what's wrong, fix it, and send a
patch.
>=20
> On 25/05/2005, at 2:53 PM, Justin Patrin wrote:
>=20
>=20
>=20
--=20
Justin Patrin
| |
| Dan Rossi 2005-05-26, 8:59 pm |
|
On 26/05/2005, at 2:30 AM, Justin Patrin wrote:
>
> You shouldn't have to use advcheckbox...normal checkboxes work fine in
> all of my forms. What browser are you using? What version of
> FormBuilder? Have you modified it yourself?
Dude there is no freaked up modifications except one particular one to
allow null fields to be set as required :) I have a diff however I dont
know if I have dont the diff right.
www.electroteque.org/pear/FormBuilder.diff .
I had my field actually set to tinyint (1) not null which i usually
setup for flags, however the DO generated it to int (11) sorry to
confuse u, I set it to int(1) unsigned, still it generated a textbox
with a value of 1 as my last example. I have tested this on both PC IE
and MAc Safari, the only way to get it to turn off, is to preformat
that field with advcheckbox which i have no issues about, i personally
think its how you are formatting the checkboxes to begin with, If it
has a value its always going to goto the DO with it on no matter if its
checked or unchecked :)
>
> Also, again, please stop and think before you post to the list.
> Sending 4 replies to the same e-mail is annoying, wasteful, and
> fragments the conversation. Think it all through and try everything
> you can think of *before* you post again. If you want more immediate
> help, use the IRC channel.
If you have a problem, say it offlist, I am trying to help here aswell
as ask questions. I dont respect being flamed that my emails are
annoying, I think whats happened is, they dont get to the list quick
enough and become out of sync. I will however in the future try and
compile it into one email, but I'm doing it as i find things.
>
> In addition, since you've gotten to into PEAR I'd think that you could
> start looking at the source code more. It would be more helpful for
> you to simply trace the code and figure out what might be wrong than
> to pester us with off-the-wall questions and strange situations that
> we can't understand. Figure out what's wrong, fix it, and send a
> patch.
>
Obviouslly I have audited your code if I am creating diff's , how long
do you think i've been around for ? I look at the guts of peoples code
and end user docs, api docs, before I start asking questions.
Personally I dont have the time as I would like to contribute to every
single package i use :|
|
|
|
|
|