JSONP web service with python

后端 未结 4 1757
迷失自我
迷失自我 2020-12-16 04:26

I\'m writing an AJAX function that requests data from my JSON Python webservice. My AJAX request looks like:

  url = \"http://localhost:8001/blah\"
  $.aja         


        
4条回答
  •  一整个雨季
    2020-12-16 05:04

    You forgot closing quote and semicolon in the first line =)

    If it is not helps, check following:

    1. List item
    2. What are you using as python service? Django, flask, something else? Maybe you can provide provide python code?
    3. Also, look at the 'Net' Firebug's tab and, after ensure that request to 'url' is actually handled (not returned 404 or 50x codes, but 200), check 'Response' sub-tab.

    Hope this helps!

提交回复
热议问题