How is the web2py JSONP action being called? What does the client do once 
the response is received?

On Wednesday, June 20, 2012 4:13:38 PM UTC-4, Jack315 wrote:
>
> Hey everyone, I'm sort of new to web2py, and I'm running a program that 
> takes submitted form information and displays it as a JSON file using 
> JSONP. Instead of displaying the JSON in the browser, it just downloads the 
> .json file to my computer. What am I doing incorrectly? 
>
> Here is the code that I am using in my controller:
>
> def get_devices(): 
>     response.view = 'generic.jsonp'
>     devices = db().select(db.contacts.ALL)
>
>     return dict(devices=devices)
>
> Thank you for any help you can provide.
>

-- 



Reply via email to