html file not call from other server , with jquery .load() -


i have code

$(document).ready(function(){      $('.designer').load('http://www.barsamservice.com/1.txt');  }); 

but , text file not loaded .

but if download text file , upload in server . text file loaded

how use access-control-allow-origin

this due same origin policy. can information if other server has running service reading text file , gives output on request.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -