Twisted.web And Ajax
I've implemented a toy web service in Twisted.Web: from twisted.web import server, resource, http class RootResource(resource.Resource): def __init__(self): resource.
Solution 1:
I can't reproduce the issue. I have used your server and your exact ajax call with JQuery and it loads fine. The alert box shows "Success: hello world!" as expected. You must have something else wrong.
Solution 2:
dataType is important,if you use dataType: 'jsonp' you should send a callback from server side. i think because of this it works in curl and not work in your browser
Post a Comment for "Twisted.web And Ajax"