Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 327 Bytes

README.md

File metadata and controls

11 lines (11 loc) · 327 Bytes

JSONP simple utility

	jsonp({
		url: '//domain.tld/path',
		success: function (response) {
			console.log(response);
		},
		cbParamName: 'jsonp', // will be passed to server as callback='jsonp' URL-param
		cbName: 'globalJsonPVarName' // will be used as a prefix for callbacks naming in global scope
	});