Re: Livesearch: onchange events on firefox 2.x and iceweasel 2.x

From: Date: Tue, 24 Apr 2007 14:50:09 +0000
Subject: Re: Livesearch: onchange events on firefox 2.x and iceweasel 2.x
References: 1 2 3 4 5  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27134@lists.php.net to get a copy of this message
Hi Paolo, Paolo Sala wrote:
Mark Wiesemann scrisse in data 24/04/2007 11:55:
After I added your event to index.php, on Windows with FF 2 and IE 7 it fires as expected, after leaving e.g. the first field with the tab key or by clicking into another field.
Are you sure?
I am sure. I don't lie to you. ;-) Can you maybe put the test script somewhere online and post the URL of it here? That would make it easy for people to test it with different browsers on different platforms. Opera 9 on Windows has also no problems here, the alert() window is shown.
zizi:~# diff /usr/share/php/tests/HTML_QuickForm_Livesearch/example/index.php /var/www/prove/example/index.php 27c27
<                       array('size' => '50')
---
                      array('size' => '50',
'onchange'=>'alert(\'Hello, world!\');') 37c37 < $form->addElement('text', 'required_field', 'errorTest', 'Some data:'); ---
$form->addElement('text', 'required_field', 'errorTest',
array('onchange'=>'alert(\'Hello, world!\');'));
Maybe this last line is just broken here in the email, but isn't the 'Some data:' parameter missing here? Maybe this breaks your whole page? (In my tests I had only added the event to line 27.) Regards, Mark -- http://www.markwiesemann.eu

« previous php.pear.general (#27134) next »