Re: Re: Livesearch: onchange events on firefox 2.x andiceweasel 2.x
| From: | Jan Wagner | Date: | Thu, 26 Apr 2007 14:22:26 +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 11 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27159@lists.php.net to get a copy of this message | ||
> > 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.
It was not a fix, rather a short test ;-) Well, it does not update the
field anymore, too.
> 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.
That is right.
> 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?
Yeah, the bug must be somewhere in livesearch. The element name and id
should be the same. Setting it manually to search in this case, does not
work either so it seems to be the javascript somwhere, somehow ...
You should open a bug report.
Cheers Jan