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);                   }); 

enter image description here , enter image description here 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -