hello all, I am developing a small system with ror, the system is designed not to have a keyboard or mouse only a touchscreen and a barcode scanner, i have used a textfield_with_autocomplete, this works fine when i use the keyboard, i have created images for an onscreen keyboard which call javascript to append the value to the text box, unfortunately this does not activate the autocomplete, my code is below. [code=]<html> <head> <%= javascript_include_tag :defaults %> <script language="JavaScript"> function append(let){ var x =document.form.ingredient_name.value; x+=let document.form.ingredient_name.value=x } </script> </head> <body> <form name=form action=go.asp method=post> Allergen: <%= text_field_with_auto_complete :ingredient, :name, :skip_style => false -%> <table> <tr> <%@topArr=[''q'',''w'',''e'',''r'',''t'',''y'',''u'',''i'',''o'',''p''] for letter in @topArr%> <td> <input type=button name="btn<%=letter%>" id="btn<%=letter%>" onclick="append(''<%=letter%>'')" value="<%=letter%>" </td> <%end%> </form> </body> </html>[/code] Any help with this would be greatly appreciated -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---