Hmmm... somewhere after 1.56.2 the ajax function was changed. It now uses serialize (which encodes a set of form elements as a string for submission) instead of the original getElementById.
On Jan 7, 5:15 am, kuokon <[email protected]> wrote: > hello, > > from the document > (page 423 of 3rd edition of web2py, > andhttp://web2py.com/book/default/chapter/10) > > it say the ajax api has the following signature > <input id="name" onkeyup="ajax('echo', ['name'], 'target')" /> > > however, when I tried on my own application, instead of the 'id' > field, I need to use the 'name' field > <input name="name" onkeyup="ajax('echo', ['name'], 'target')" /> > > in order for the ajax api to work. (ie, the input tag has to be 'name' > instead of 'id') > > maybe the document was wrong or the API get changed recently? > I'm using the most recent (web2py-1.91.5) web2py. > > Best,

