Thursday, March 07, 2013

javascript - JSONP and Backbone.js - Stack Overflow

javascript - JSONP and Backbone.js - Stack Overflow: "JSONP support for GET operations can be added via fetch's options.

In the same hash where you configure your success and error handlers, add an object like so:

{dataType: "jsonp"}

This will pass along the jsonp option to JQuery's ajax handler, and automagically, you'll have JSONP support for retrieving models / collections."

'via Blog this'