Re: HTML_QuickForm_Liveseach draft update

From: Date: Wed, 11 Jan 2006 14:11:49 +0000
Subject: Re: HTML_QuickForm_Liveseach draft update
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40927@lists.php.net to get a copy of this message
Giuseppe Dessì wrote: >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). -- Bertrand Mansion http://www.mamasam.com - creative internet solutions http://golgote.freeflux.net - my blog

« previous php.pear.dev (#40927) next »