Re: Re: upgrade-all broke something
| From: | Alexey Borzov | Date: | Fri, 06 Oct 2006 17:24:18 +0000 |
| Subject: | Re: Re: upgrade-all broke something | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25371@lists.php.net to get a copy of this message | ||
Hi,
Troy Cregger wrote:
Yup, it works with the previous version.. I just installed
HTML_QuickForm 3.2.5 and that fixed the problem.
Now... how do I find out what the reason for this is? I'm fairly new to
PEAR but am willing to contribute in any way I can.
Later (when I'm not at work) I'll document this experience, maybe it
will help others.
Here's the simple version. (typo corrected this time)
In the source php file I have something like:
$t = &HTML_QuickForm::createElement('checkbox', 'Check:', 'Select', null,
array('checked' => '', 'onClick' => 'javascript:update();',
'class' => 'checkbox'));
The update() function referenced above is in a smarty template.
HTML_QuickForm 3.2.5 calls the function and the form 'updates' with the
new values, details about the JS I don't think are relevant since the
problem is that in HTML_QuickForm 3.2.6 the script does not execute at all.
Thanks for the help, and if I happen to find out why this happened I
will post it.
T.
1) I don't think there were any changes done to either checkboxes or Smarty renderer in QuickForm 3.2.6
2) I don't understand what script is QuickForm supposed to call, since I only see an onclick handler here which is supposed to execute when, well, someone actually *clicks* on the checkbox.