I can do everything ten times faster in web2py but then jquery seems
to soak up all the time saved!
I have two forms on a page loaded via "LOAD". I capture a change in
focus from form1 to form2 and submit form1 via ajax. When the ajax
response is received then form1 is replaced by the new version (this
happens in web2py_ajax via the line t.html(html)).
When this line is executed then the focus is lost from form2. I am
wondering if there is a way of preventing this. I have tried to add
this to web2py_ajax but it did not work.
a=document.activeElement;
t.html(html);
$(a).focus()