[web2py] Re: JSONP in web2py

2012-05-18 Thread Massimo Di Pierro
Assuming you have views/generic.jsonp you need to enable it for remote requests: def get_devices(): response.view = 'generic.jsonp' devices = [r.hostname for r in db().select(db.device_status.hostname)] return dict(devices=devices) Then you need to call it with jQuery.getJSON("htt

[web2py] Re: JSONP in web2py

2012-05-18 Thread david
did anyone ever respond, or get this to work?