Cannot get response while using jQuery.get Ajax function -
i have python script on server. displays simple html page. opens fine in browser. try page using ajax. response seems timed out (just assuming...) , no response received. chrome shows status of request canceled. why?
$.get("myurl",function(data,status){ alert("data: " + data + "\nstatus: " + status); });
, ps. html request using ajax stored @ localhost. if server blocks ajax requests prevents xss ?
update: python script
#!/usr/bin/python print "content-type: text/html" print print "<html><head><title>test.py</title></head><body><h1>hello, world!</h1></body>" print
update2: chrome console: xmlhttprequest cannot load http://myserver/hello.py
. origin http://localhost
not allowed access-control-allow-origin.
Comments
Post a Comment