Re: HTML_QuickForm - setValue() not working?

From: Date: Thu, 21 Oct 2004 14:17:45 +0000
Subject: Re: HTML_QuickForm - setValue() not working?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15017@lists.php.net to get a copy of this message
On Thursday 21 October 2004 13:07, Alexey Borzov wrote: > Instead of that code use: > $action =& $this->addElement('hidden', 'action'); Thanks for the fast reply. I've tried what you suggested. It works on a really cut down version my colo server, but on my development server, I have needed to do this to solve it: $actionElement =& $this->addElement('text', 'action'); $moo =& $this->getElement('action'); $moo->setValue(''); I really don't know why, doing this does *not* work $actionElement =& $this->addElement('text', 'action'); $actionElement->setValue(''); I don't know why, but I've already spent a day (casually) trying to get this working, so I don't want to spend too much time looking. I've set up that example I posted a few days ago on he site below. If you wish to distribute it with the package, I would be more then happy for this. I'm going to keep a version on my site, as I may add a library of examples over time (I've done a few other 'cool' things with HTML_QF, like xmlhttprequest stuff that others might learn from). http://pookey.co.uk/pear-qf-dynamic.xml I really appreciate your continued quality support you give on this list, and your work on HTML_QF. Kind Regards, -- Ian P. Christian http://pookey.co.uk

Attachment: [application/pgp-signature]
« previous php.pear.general (#15017) next »