Generating scriptaculous ajax.autocompleter on the fly
Posted
by user279992
on Stack Overflow
See other posts from Stack Overflow
or by user279992
Published on 2010-02-24T02:26:56Z
Indexed on
2010/04/07
2:03 UTC
Read the original article
Hit count: 469
scriptaculous
I have a form where the user can dynamically add a new table row with fields. I'm using a simple insertCell/InsertRow with innerHTML to generate the new row. One of those form fields is using scriptaculous' ajax.autocompleter. I have it generating new IDs for all the elements, but it is still not working
The new row generated by js has the same source as the initial row of the form that loads at run time, however it does not appear to be calling the autocomplete function. I think my problem lies in that I don't understand when/how the "new Ajax.Autocompleter" is called.
Is it not possible to use ajax.autocompleter like this?
TIA
© Stack Overflow or respective owner