Well i have studied the angular js document and this code works perfect on the same server; somehow not working on cross site; localhost is reachable
module='user';
siteurl='http://localhost/angularjs';
url=siteurl+"/admin/"+module+"/list";
BlockUi();
$http({
url : url,
method : "post",
data : "",
headers : {'Content-Type':undefined}
}).then(function(responseText){
$scope.totaltablerows=responseText.data.response_data;
$scope.tablerows=$scope.totaltablerows;
UnblockUi();
$scope.searchFunction();
},function(error){
alert(JSON.stringify(error));
UnblockUi();
UnknownError();
});
What should i do so that this could work.