# getJSONP **Repository Path**: mirrors_dafrok/getJSONP ## Basic Information - **Project Name**: getJSONP - **Description**: A simpler helper function to get JSON data from another server. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # getJSONP A simpler helper function to get JSON data from another server. [Download getJSONP](https://github.com/cferdinandi/getJSONP/archive/master.zip) ## Getting Started ### 1. Include getJSONP on your site. Include the code in your script, or load it as an external file. ```js var getJSONP = function ( url, callback ) { ... }; ``` ### 2. Fetch your JSON data. Pass in the URL to fetch data from, as well as the name of a callback function to pass the data to. ```js // Callback function var logAPI = function ( data ) { console.log( data ); }; // Get JSON getJSONP( 'https://jsonplaceholder.typicode.com/posts/10', 'logAPI' ); ``` ## Browser Compatibility getJSONP works in all modern browsers, and IE 6 and above. ## How to Contribute Please review the [contributing guidelines](CONTRIBUTING.md). ## License The code is available under the [MIT License](LICENSE.md).