That works!  Thank you very much

On Thursday, September 4, 2014 2:59:58 PM UTC-4, Niphlod wrote:
>
>
> from gluon.serializers import json
> def thebackend():
>       thedict = dict(a=1, b=2)
>       return json(thedict)
>
>
>
> $.getJSON('/appname/default/thebackend.json', function(data) 
> {console.log(data)})
>
>
>
> On Thursday, September 4, 2014 3:52:01 PM UTC+2, Jason Solack wrote:
>>
>>
>> Hello everyone, I'm hoping someone might be able to provide an example of 
>> how to use the web2py ajax API to transfer json data from the server to the 
>> client side javascript.  
>>
>> Any help would be appreciated!
>>
>> Thank you 
>>
>> Jason
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to