Receive Text content from another page

Asked

Viewed 24 times

1

I am involved in a project and at the moment I need to receive content from a page (in this case, this: http://150.165.202.10/ -> online and working). I try to do it through the code below that uses Ajax, however, I get nothing via console or even in Alert. What would be a plausible solution?

Excerpt from the code:

$.ajax({ url: 'http://150.165.202.10/', 
    headers: {'X-Requested-With': 'XMLHttpRequest'}, 
    dataType:'text', success: function(data)  { 
     alert(data);
  console.log(data)
...
});
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.