开发者

How to load data from a JSON generated via mod-python

I'm having some trouble while loading JSON data from a cgi written开发者_JAVA技巧 in python. The python script sounds like this:

def get_data(req):
    #create a dictionary to be written as json
    req.write(str(dictionary)

I've used the same script with ext js so it's working, the problem is in the javascript. I'm creating the chart but I don't know how to read data from a remote python script, I didn't find any example or docs about this. How is this done?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜