Hi,

Today, I upgraded my web2py version from 191.6 to 1.97.1 - all went
well except where I had used the autocomplete jquery plugin on jquery
dialog boxes. (I do thsi lots of times). Let me explain.

1. I create a dialog box using jquere dialog plug in
2. Then I use Web2py ajax to populate the div with the content which
is a form
3. After the ajax load, I use a javascript routine with a timer to
attempt to assign the autocomplete addin to a select field in the
form.

All worked well in the upgrade except this. The autocomplete code
fails  with a message saying the select has no method 'combobox'

Now, I tracked the 'problem' down to the line of code in
web2py_ajax.js in the jQuery ajax call that puts the ajax content into
the div in my dialog boxes:

v 1.97.1 jQuery("#" + t).html(msg); (the new way - DOES NOT WORK)
v 1.91.6 document.getElementById(t).innerHTML=msg; (the old way -
WORKS)

So I've made that change temporarily in web2py_ajax.js. Looking around
the web, there seems to be a general view that innerHTML isn't the
best way to load content into fields.

Can anyone explain the difference in behaviour and what I need to
consider in adopting the new style ajax routine? Or is this a bug???

Reply via email to