[web2py] json Data from the server not displaying!

2023-03-20 Thread mostwanted
I have data that is in json format from the database, i want to draw a graph with data but i'm not sure how to display it in my view in graph format using the plotly library. My view code display nothing! *CONTROLLER* def dashboard(): call_clicks = db().select(db.dashboard.call_clicks) s

[web2py] json data breaks, via routing, to a web2py controller

2018-11-03 Thread Carl Hunter Roach
I've had a stable web2py-based service for some years now. But it broke today with a small change in a data value - that's my working hypothesis. The output of the print statement (see code below): The value of "page_cursor" sent by the caller is "page_cursor" : "A2ebAAFVVvv0OW53MHyzU0VWVVBx

Re: [web2py] JSON data in HTML web page

2014-04-03 Thread Martin Weissenboeck
​I am not sure ... did you mean: ​ ​def index(): d = {"IP": ["192.111.111.111", "222.222.222.222", "333.333.333.333"], "MAC": ["aa:aa:aa:aa", "bb:bb:bb:bb", "cc:cc:cc:cc"], "conn": ["wireless", "wireless", "wireless"]} return d index.html: {{extend 'layout.html'}}

[web2py] JSON data in HTML web page

2014-04-03 Thread Ramesh Aj
I am reading data from remote machine and converting it into dictionary format like {IP: [192.111.111.111, 222.222.222.222, 333.333.333.333], "MAC": [aa:aa:aa:aa, bb:bb:bb:bb, cc:cc:cc:cc], "conn": [wireless, wireless, wireless]} I am sending this dictionary to view which is index.html where

[web2py] JSON Data

2011-01-19 Thread contatogilson...@gmail.com
Hello guys, I'm wanting an action returns a json like this: { "start": "2011-01-27", "id": 4, "title": "Fulano Silva" } Only to send to the view he is being rendered thus: "{\n \"start\": \"2011-01-27\", \n \"id\": 4, \n \"title\": \"Fulano Silva\"\n}" The code I made to ret