0

Is is even possible? or does it require a server?

$.get("http://xxxxx.com", function (data) { 
    alert(data);
}); 

That's all I got but it doesn't print out anything.

Tushar
  • 85,780
  • 21
  • 159
  • 179
  • 1
    @Tushar - are you sure it should work, cross origin for example? – Jaromanda X Jul 11 '15 at 05:02
  • 1
    possible duplicate of [Is there a JavaScript way to do file\_get\_contents()?](http://stackoverflow.com/questions/10693518/is-there-a-javascript-way-to-do-file-get-contents) – michelem Jul 11 '15 at 05:26

1 Answers1

0

Sorry but You can not retrieve data from a different domain using jquery Due to browser security restrictions.

Yes you can use other scripts like perl to scrap html data from third party url.

by using jquery and ajax you do retrieve data from your own web-site.

php-coder
  • 955
  • 1
  • 12
  • 23