I want to ajax cross domain site to take some data from it. I successfully do it with:
$.ajax({
type: "GET",
url: url,
dataType: 'jsonp',
data: { internal:internal, item:item },
success: function(response){
console.log(response);
}
});
But the response is not json, it is html, I can see it in response window in browser, but cant echo it to screen.
Can you help me?
Since in returns html, I referred to the page via php, parsed what I need and returned needed info