On Sunday, September 4, 2011 8:01:16 PM UTC-4, Noel Villamor wrote: > > > Thanks for that very helpful snippet Bruno. > > Just a follow-up, will it be possible for the 'target' parameter below > be a jQuery function? I wanted to do some further processing on the > browser side when callback returns. > > ajax("{{=URL('default','mycontroller')}}"+args ,[],'target'); >
If you set target to ':eval' and have the function return some javascript, the javascript will be executed upon return. See http://web2py.com/book/default/chapter/10#Eval-target. Anthony