Hi, I wrote yesterday ( http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2005-November/001307.h tml ), but with no replies. This mail is not to spam, just a further clarification of the problem: This little bit of code illustrates the problem: <script language="javascript"> function ac(elm) { var val = $F(''val''); new Ajax.Autocompleter(elm, ''suggest'', ''function/main.php?action=''+val+''_suggestions'', {paramName: val+''_query''}); } </script> <select id="val"> <option value="type1">Type 1</option> <option value="type2">Type 2</option> <option value="type3">Type 3</option> <option value="type4">Type 4</option> <option value="type5">Type 5</option> </select> <input onfocus="ac(this);" /> <input onfocus="ac(this);" /> <input onfocus="ac(this);" /> <input onfocus="ac(this);" /> If "val" is set to "type1", it queres the server for "type 1" suggestions (A basic sql lookup), and if set to "type2" it queres the server for the "type 2" suggestions and so on. The problem is that if a field has once been set to "type1" queries, and then is later focused, but with a different type, it show the results for "type 1". Actually the "type 2" suggestion shows, but are then quickly replaced by the previous ones.. After a bit with switching back and forward in the suggestion type, it gets really confused and the suggestion div flickers. It somehow seems to remember previous suggestions, and it shouldn''t. Can this be avoided somehow, or is it a bug, or am I going about this the wrong way? I really hope someone can help, as this problem has been driving me up the wall, for the last couple of days. Thanks, Regards, Michael _____ Jeg beskyttes af den gratis SPAMfighter til privatbrugere. Den har indtil videre sparet mig for at fa 89 spam-mails Betalende brugere far ikke denne besked i deres e-mails. Hent en gratis SPAMfighter her <http://www.spamfighter.com/Lang_DA/Product_Info.asp> . _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs