0

I knew the internet address which has images that i want to show. Then, Without image download, how can i get the image view in my homepage as like facebook?

I had the image website address.

Please help me!

1 Answers1

0

Was going to write this as a comment, but it's too long:


CORS

You should be aware about CORS policies on different web hosts. You have the tag of ajax, which means you're going to use an XHR (XMLHttpRequest) to another host

The reason I write this is because although you can access other web sites through CURL (if using PHP), using a JS (Ajax) request will probably lead to being knocked back

If you're going to "import" image SRC's from a website, you'll likely have to do it with a HTTP request, rather than an asynchronous ajax one

Richard Peck
  • 76,116
  • 9
  • 93
  • 147