0

I've been digging for an answer to the above solution, but I did not found something interesting. Can you guys please explain it in clear words??

  • You read https://en.wikipedia.org/wiki/Ajax_(programming) and https://en.wikipedia.org/wiki/JSONP? – Bergi Feb 24 '16 at 16:53

1 Answers1

2

Ajax is a generic term that means "Making an HTTP request and processing its response, from JavaScript, without leaving the page".

JSONP is a specific means of making an Ajax request that is performed by adding a <script> element that loads an external JavaScript program that does nothing except call a specified function with some data as the first argument. It is a hack to get around the Same Origin Policy. (It is obsolete in the face of CORS which provides a much safer, and more refined, means to do the same thing).

Community
  • 1
  • 1
Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335