Re: HTML_QuickForm_Liveseach draft update
| From: | Giuseppe Dessì | Date: | Wed, 11 Jan 2006 14:23:22 +0000 |
| Subject: | Re: HTML_QuickForm_Liveseach draft update | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-40928@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
Giuseppe Dessì wrote:only one time, first time. Thank you! ;)This problem seem to be related to QuickForm I used (as in example) this code to initialize the javascript class: [code] <script type='text/javascript'>//<![CDATA[ var remoteLiveSearch = new livesearch(callback); remoteLiveSearch.dispatcher.queue = 'rls'; HTML_AJAX.queues['rls'] = new HTML_AJAX_Queue_Interval_SingleBuffer(350); //]]> </script> [/code] but this code is written every time an livesearch element is created. Is there a way to write this piece of code one time? The main problem is that i don't know if the livesearch search element is the last one!I am not sure you need to use it for the last one only, maybe the first one would do. In this case, use a define() like this is done in other elements (see hierselect for example). Oh yes.....my bad!!