Re: [web2py] How to flash a message after a callback

2011-09-12 Thread jot.be
Hi, On Mon, Sep 12, 2011 at 4:57 AM, Noel Villamor wrote: > I have a button which does the following callback: > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > Then I have the following callback function in my controller: > > def callback(): >db(db.tbl.id==100).update(data='sampledata

Re: [web2py] How to flash a message after a callback

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 7:57 PM, Noel Villamor wrote: > I have a button which does the following callback: > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > Then I have the following callback function in my controller: > > def callback(): >db(db.tbl.id==100).update(data='sampledata') >

[web2py] How to flash a message after a callback

2011-09-11 Thread Noel Villamor
I have a button which does the following callback: ajax('{{=URL('callback')}}',['btn1'],':eval');" Then I have the following callback function in my controller: def callback(): db(db.tbl.id==100).update(data='sampledata') jquery = ??? return jquery I can use jquery = "alert('Lame ta