Re: Re: Livesearch: onchange events on firefox 2.x andiceweasel 2.x

From: Date: Thu, 26 Apr 2007 13:52:36 +0000
Subject: Re: Re: Livesearch: onchange events on firefox 2.x andiceweasel 2.x
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-27158@lists.php.net to get a copy of this message
Jan Wagner scrisse in data 26/04/2007 11:43: >> But Have you tried to select a element from the list? > > Okay, this does not work in FF2. > >> In effect if I write something without choosing a word from the >> livesearch list and press TAB or click with the mouse somewhere on the >> page, the event onchange is fired. But in effect the field is not >> changed: is ever the same empty value string. > > Hmmh this problem seems to be known: > > http://dev.rubyonrails.org/ticket/5179 > > Having looked around the net, I found some references to problems with > the name attribute. Could it be because of your id and name values not > matching? > > Okay just tested the example myself. When I rename elementId from search > to 'Nome' in index.php and function search() to Nome() in > livesearch.class.php it works as expected. Thank you very much Jan... you've done bingo!!! But... when I try your solution I get an error: remoteLiveSearch.Nome is not a function. Furthermore even if there are no errors in your solution, AFAIK it can't be applied because if you set the livesearch element name and livesearch elementId option having the same value you have two HTML input element with the same id (take a look to the html source of the page). And that is not an html valid code. Anyway there is a bug, I have not a lot of experience and I don't know if I have to open a bug report, try to solve the bug and send a patch or... please someone can try help me? Piviul

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