For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2005 > Re: [PEAR] QuickForm + "soft" rules.









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] QuickForm + "soft" rules.
Justin Patrin

2005-06-05, 8:56 pm

On 5/27/05, Justin Patrin <papercrane@gmail.com> wrote:
> On 5/27/05, Edward Grace <ej.grace@imperial.ac.uk> wrote:
can[color=darkred]
t[color=darkred]
atting[color=darkred]
ld not[color=darkred]
hence[color=darkred]
r[color=darkred]
ll[color=darkred]
ails[color=darkred]
nt to[color=darkred]
would[color=darkred]
e the[color=darkred]
the[color=darkred]
>=20
> Sounds like a great idea. In fact, it's a *little* like the
> preValidationCallback option I added to my SubForm element. I'll see
> if I can find a few minutes to see if I can hack something up.
>=20


Hmmm.....well my quick look didn't turn up anything easy. If anyone
else can get this working it would be great. Or a feature request for
QF would be good.

--=20
Justin Patrin
Edward Grace

2005-06-06, 8:56 am

> Hmmm.....well my quick look didn't turn up anything easy.

That's the same conclustion I came to.. I was just hoping someone with more
PHP "mojo" would see an easier way! ;-)

> If anyone
> else can get this working it would be great. Or a feature request for
> QF would be good.


I will add this,

-ed
Jaskirat Singh

2005-06-06, 8:56 am

may be it works .. I have just started using quickform .. so not very sure .. but here is an idea for the hack ...

Addrule as usual .. and when the form is sent back for correction .. check if that is the "ONLY" error in the form .. if that is so .. freeze that element .. and don't add that rule this time ...

possible ?

Jas

Edward Grace <ej.grace@imperial.ac.uk> wrote:
> Hmmm.....well my quick look didn't turn up anything easy.


That's the same conclustion I came to.. I was just hoping someone with more
PHP "mojo" would see an easier way! ;-)

> If anyone
> else can get this working it would be great. Or a feature request for
> QF would be good.


I will add this,

-ed

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Justin Patrin

2005-06-06, 3:57 pm

On 6/6/05, Jaskirat Singh <jaskirat_singh@yahoo.com> wrote:
> may be it works .. I have just started using quickform .. so not very su=

re .. but here is an idea for the hack ...
>=20
> Addrule as usual .. and when the form is sent back for correction .. chec=

k if that is the "ONLY" error in the form .. if that is so .. freeze that e=
lement .. and don't add that rule this time ...
>=20
> possible ?


Sure it is and I could fairly easily make some code which alters the
form in this way but I was looking for an easy solution to allow the
rule itself to do this so that it could be a component of QuickForm.

>=20
> Jas
>=20
> Edward Grace <ej.grace@imperial.ac.uk> wrote:
>=20
> That's the same conclustion I came to.. I was just hoping someone with mo=

re
> PHP "mojo" would see an easier way! ;-)
>=20
>=20
> I will add this,
>=20
> -ed
>=20
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20
>=20
>=20
>=20



--=20
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com