Hello all, I'm integrating the autocompleter widget with a Java backend.
This technical part was a piece of cake, but not the CSS design of the widget value list. The page, http://demo.script.aculo.us/ajax/autocompleter_customized , shows Ruby On Rails code : # _contacts.rhtml partial <ul class="contacts"> <% for contact in @contacts do -%> <li class="contact"> <div class="image"> <img src="/demos/images/contacts/<%= contact.id.to_s[-1,1] %>.jpg"/> </div> <div class="name"><%=h contact.name %></div> <div class="email"> <span class="informal"><%=h contact.email %></span> </div> </li> <% end -%> </ul> This code permits to show styled values and this is what I tried to do without success. I do not understand how to add this specifc html in the Autocompleter. Currently, I have : <script type="text/javascript"> new Autocompleter.Local('mnemo', 'mnemo_list', resultArray, options ); </script> resultArray is a Javascript array containing all the values (the contacts in the Ruby example). Should I append for each contact the <li>...</li> html piece of code ? But where do I add the surrounding <ul class="contacts">...</ul> ? Thanks a lot, Tom --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
