@lowzonenose/jsonp

JSONP (or JSON with Padding) is a technique used by web developers to overcome the cross-domain restrictions imposed by browsers to allow data to be retrieved from systems other than the one the page was served by.

Usage no npm install needed!

<script type="module">
  import lowzonenoseJsonp from 'https://cdn.skypack.dev/@lowzonenose/jsonp';
</script>

README

Build Status

JSONP (or JSON with Padding) is a technique used by web developers to overcome the cross-domain restrictions imposed by browsers to allow data to be retrieved from systems other than the one the page was served by.

USAGE

 var options = { 
   url : 'http://localhost/response.json', 
   timeOut : 10000, 
   onResponse: function (response) { console.log('onResponse', response); }, 
   onTimeOut : function () { console.log("Time out !"); } 
 };
 JSONP.call(options);