Artifact c86cb0618f8280b5d21220b3fee6c5331abab2d1:
- File applications/examples/controllers/ajax_examples.py — part of check-in [eba4a35a21] at 2011-08-08 04:53:38 on branch develop — Added web2py 1.98.2 (user: spiffy, size: 370) [annotate] [blame] [check-ins using]
def index(): return dict() def data(): if not session.m or len(session.m) == 10: session.m = [] if request.vars.q: session.m.append(request.vars.q) session.m.sort() return TABLE(*[TR(v) for v in session.m]).xml() def flash(): response.flash = 'this text should appear!' return dict() def fade(): return dict()