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
Post a Comment