开发者

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

开发者 https://www.devze.com 2023-03-27 19:30 出处:网络
I\'m having some trouble while loading JSON data from a cgi written开发者_JAVA技巧 in python. The python script sounds like this:

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

精彩评论

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