What is jsonp
jsonp stands for json with padding. It's simply wrapping returned json data with a function call. This enables sites to get around cross-site scripting problems. You only need to use this if you're trying to get data from chartbeat within a javascript call.
Normally, all the API calls return something like:
{'value': true, 'size': 10}
If you add &jsonp=funcname to any of the calls, you'll get back:
funcname({'value': true, 'size': 10})
This allows you to get the data sent directly to the function 'funcname'
Instead of using an XMLHttpRequest to request the data, you would instead do a simple <javascript> include.
Comments (0)
You don't have permission to comment on this page.