Questions tagged [jsonp]

For questions where the use of the API requires JSON with Padding (JSONP) to work around cross-domain Ajax limitations.

Filter by
Sorted by
Tagged with
2 votes
1 answer
144 views

How to use the Stack Exchange API in PhoneGap?

I want to write a program using PhoneGap. How can I use the Stack Exchange API in PhoneGap?
互联网fans's user avatar
0 votes
2 answers
112 views

Ajax get questions by tags ERROR

i'm trying getting questions by tags. this is my simple code and i'm running this from my http://localhost: <script type="text/javascript"> $(function(){ $.ajax({ url:'http://api....
itsme's user avatar
  • 115
2 votes
1 answer
310 views

Best way to calculate total badge count in Javascript?

I'm using Javascript and JSONP and want to find-out a user's total badge-count (i'm not using any libraries). At first I naively added up the badge counts individually, but some user's have no badges....
Gelatin's user avatar
  • 796
6 votes
1 answer
617 views

API Suggestion: suppress http error code when jsonp is specified

Conclusion: fast response by Kevin enables the JSONP functionality of the API to assume it's rightful description of awesome. http://soapi.info/Code/JS/Stable/ErrorTest.htm The JSONP functionality ...
Sky Sanders's user avatar
  • 12.1k
1 vote
1 answer
379 views

How to use the stackapps API from JavaScript with XMLHttpRequest or XDomainRequest?

I had an idea for an app that required calling the stackapps API from JavaScript, but when I started prototyping it I quickly found out that the API does not allow cross origin requests. This means ...
Greg Bray's user avatar
  • 175
7 votes
2 answers
1k views

Am I accessing the API correctly?

When running the code $.getJSON('http://api.stackoverflow.com/0.8/questions/4', function(data) { // Do some stuff here.... }); I get the error Failed to load resource Am I accessing this ...
Kredns's user avatar
  • 213