jquery ajax call in apache
I am trying a simple Ajax call from HTML file but i could nt get it
it is coming into "success" but no data on it
$("#btnAjax").click(function () {
$("#dvAjax").html(ajax_load);
$.ajax({
type : "GET",
url : "http://www.smartcloudlearning.mobi/SmartCloudLearningMobi/rest/resource/getResourceTypes",
contentType: "application/json", // content type sent to server
processdata: true, //True or False
success : function(rTypes) {
alert("success! 1==" + rTypes.length);
$("#dvAjax").html(rTypes);
},
error : function(XMLHttpRequest, textStatus, errorThrown) {
alert("An error has occurred making the request: " + errorThrown);
}
});
return false;
});
Could you hel me to solve this issue.
2) you can see data on URL but not in ajax call
http://www.smartcloudlearning.mobi/SmartCloudLearningMobi/rest/resource/getResourceTypes