On Fri, Mar 8, 2013 at 2:59 AM, Shannon Cruey
<
shanno...@cloudsidekick.com> wrote:
> My function is too long to paste here, but this is the (untested) relevant
> lines. I have jsonp callback working with jquery ajax.
>
> def GET(self, method):
> args = web.input()
> web.header('Content-Type', 'application/json')
> payload = json.dumps({'a': 'foo'}) ' # or call some func that return
> serialized data
> return "%s('%s')" % (args["callback"], payload)
>
> I can't find my jquery example, but basically it executes the command you
> got back. callbackfunc(jsondata);