Forum: Ruby on Rails Text_field_with_auto problem Help urgently requried

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0656235ae7d34d88a50ac57e6852d73d?d=identicon&s=25 Tom (Guest)
on 2007-02-05 18:35
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.

<%= javascript_include_tag :defaults %>
<script language="JavaScript">
function append(let){
var x =document.form.ingredient_name.value;

<form name=form action=go.asp method=post>

<%= text_field_with_auto_complete :ingredient, :name,  :skip_style =>
false -%>


for letter in @topArr%>
<td>  <input type=button name="btn<%=letter%>" id="btn<%=letter%>"
onclick="append('<%=letter%>')" value="<%=letter%>" </td>

Any help with this would be greatly appreciated
This topic is locked and can not be replied to.