REST-style JSONP callback option
|Reported by:||dandv||Owned by:|
I'm trying to get cross-domain JSONP data from this API: http://judstephenson.com/programming/2008/11/realtime-stock-quotes-api-updated
Unfortunately, the API is not standard in accepting a ?callback=foo parameter, but rather requires appending 'foo' to the URL:
I've tried to use jquery.getJSON, but the way of specifying a callback is restricted to the "url?callback=?" scheme. I would need just "url/?".
Proposal: to accommodate REST APIs, if the URL ends in '/?', getJSON should simply replace the '?' with the callback name.
Change History (6)
comment:5 Changed 5 years ago by jaubourg
- Resolution set to fixed
- Status changed from open to closed