I have two nearly identical auto_complete inputs. One uses the paramName: 'external_sample_id' and the other uses paramName: disease. The one with the long paramName never returns a result to the auto_complete div. I have checked that the server is returning a ul list for each query and it does. I have also replaced JUST the pramName in the one that is not working with a shorter name. Any ideas?
Thanks Here is the code: <html> <head> <title>Oncexpress:filter</title> <style type="text/css"> div.auto_complete { width: 100px; background: #fff; display: inline; } div.auto_complete ul { border: 1px solid #888; margin: 0; padding: 0; width: 100%; list-style-type: none; } div.complete ul li { margin: 0; padding: 3px; } div.auto_complete ul li.selected { background-color: #ffb; } div.auto_complete ul strong.highlight { color: #800; margin: 0; padding: 0; } </style> <script src="./include/prototype.js" type="text/javascript"></ script> <script src="./include/scriptaculous.js" type="text/javascript"></ script> </head> <body> <form id="rayBanData" method="POST"> <p> <h5>External Sample ID</h5> <input id="search_external_sample_id" autocomplete="off" size="40" type="text" value=""/> <div id="search_external_sample_id_auto_complete" class="auto_complete"></div> <script type="text/javascript"> //<![CDATA[ new Ajax.Autocompleter('search_external_sample_id', 'search_external_sample_id_auto_complete', "./ajaxsolrsearch.action", {paramName: 'external_sample_id'}); //]]> </script> <p> <h5>Disease</h5> <input id="search_disease" autocomplete="off" size="40" type="text" value=""/> <div id="search_disease_auto_complete" class="auto_complete"></ div> <script type="text/javascript"> //<![CDATA[ new Ajax.Autocompleter('search_disease', 'search_disease_auto_complete', "./ajaxsolrsearch.action", {paramName: 'disease'}); //]]> </script> </body> </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---