[web2py] Bootstrap modal and AJAX

2012-04-21 Thread Annet
I have two functions: def eventList(): response.view='calendar/eventList.html' rows=db(...).select() return dict(rows=rows) def event(): response.view='calendar/event.html' row=db(db.EventList.id==request.args(0)).select(db.EventList.ALL).first() return dict(row=row) I

[web2py] Bootstrap modal and ajax

2012-05-25 Thread Annet
In a controller I have the following functions: def eventList(): response.view='calendar/eventList.html' rows=db(..).select(...) if not rows: response.flash=response.flash_noresult return dict(rows=rows,alert=alert) def event(): response.view='calendar/event.html'