cordova - Requesting php using Ajax -


i came across following error (failed load http: // ...: no 'access-control-allow-origin' header present on requested resource. access.) when trying pull echo php index.html of cordova using ajax. here codes:

php:

<?php   echo ". . ."; ?> 

ajax:

$(document).ready(function() {  $.ajax({   type: "get",   url:"http://.../index.php",   datatype: "text",    success: function(){   alert('funcionou ?');   }  }); }); 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -