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

From: Date: Tue, 24 Apr 2007 11:21:51 +0000
Subject: Re: Livesearch: onchange events on firefox 2.x and iceweasel 2.x
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27133@lists.php.net to get a copy of this message
Hi Mark, thank you very much for the interest in my troubles... I can't understand... I fill very confused!!! 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? ...it doesn't work on my PC's :-((. I've tested it with windows xp, windows 2k, edgy ubuntulinux, feisty ubuntulinux, etch debian GNU linux and FF 2 or iceweasel 2 and ie6 too doesn't fire the onchange event; FF 1.x and epiphany does. Please someone else can try this example and say me the results? In all my tests IE6, FF2 on windows doesn't fire the onchange event of the QF_Livesearch element; FF1.x does. There are no problems in QF_text elements. On linux epiphany can fire QF_Livesearch element onchange event; iceweasel or FireFox 2 doesn't. These are the changes I've done to index.php of the dir example distributed with the PEAR Livesearch class and are the ONLY ones. 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!\');'));

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