Before i retrieve data from my link (http://mubi-app.herokuapp.com/api/v1/home), i test it with browser, it is ok. it returns Json format, but i got error when i access that link with ajax. Thanks,
Here is my code .....
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$.ajax({
type:"GET"
, url:"http://mubi-app.herokuapp.com/api/v1/home"
, dataType:"jsonp"
, success: function(data){
debugger;
$('#result').text(data)
}
, error: function(e) {
debugger;
console.log(e)
alert(e + "Error");
}
});
});
</script>