jquery - How to get json in web2py view -
the methods data in view of web2py not seem working. used method mentioned in http://web2py.com/books/default/chapter/29/10/services
<script> $.getjson('/application/default/weekdays', function(data){series: [{ type: 'area', name: 'response(kw)', data: data }] });
for plotting purpose , did not work; plot did not show up. used method in http://www.web2pyslices.com/slice/show/1334/consuming-a-web2py-json-service-with-jquery
jquery.getjson("{{=url(r=request,f='call',args=['json','get_days'])}}", function(data){...
, using plot showed not data.
the $.getjson('/application/default/weekdays' did not somehow work, $.getjson('default/weekdays' worked.
Comments
Post a Comment