Re: Livesearch: onchange events on firefox 2.x and iceweasel 2.x
| From: | Paolo Sala | Date: | Wed, 25 Apr 2007 05:57:50 +0000 |
| Subject: | Re: Livesearch: onchange events on firefox 2.x and iceweasel 2.x | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27138@lists.php.net to get a copy of this message | ||
Hi Mark, thank tou very, very and very much...
Mark Wiesemann ha scritto:
> I am sure. I don't lie to you. ;-)
Yes I know but... as far as my experience knows is unbelievable that
someone has different results and fear I'm getting crazy!!!
> 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.
I would ask you the same... but I can try: I have an adsl with a static
IP so... even if with a very little bandwith but in effect I can try...
but if you have a php site I can send you the example or a patch for the
index.html and see if I have the same behaviour I have on my server.
> Opera 9 on Windows has also no problems here, the alert() window is shown.
I've no tried Opera 9... but I have tried IE6 and seems to have the same
behaviour than FF2.
In effect the onchange event fires on FF2 but fires only if I don't
select an element from the list. If I select an element from the list
nothing happens...
>> 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?
AFAIK the QF addElement takes in the fourth argument the attributes
array... is the original example wrong?
> (In my tests I had only added the event to line 27.)
I've modified the line 37 only to see if on FF2 the onchange event rise
on QF_text elements, and it does.
Thank you very much
Piviul