OK, now I found the real reason why my ajax wasn't working.

Yes, the example I introduced above was, indeed, incorrect because it
didn't have the right id. Mr. Freeze's is correct. However, this was
not the root problem.

The root problem was that I was using a version of the
web2py_ajax.html from when I originally started developing my app a
few months ago. That version is, apparently, out of date and didn't
work properly. I updated it with a later version and voila, my ajax
now works.

So caveat emptor: if you're working on ajax, make sure your views
folder has an updated version of web2py_ajax.html.

In general, this may be an issue about releasing newer versions of
web2py because the apps aren't updated automatically. Perhaps the ajax
include should be one level up from apps?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to