Vote up to Idea JSONP Callback Vote down to Idea JSONP Callback

Rank36

Idea#134

This idea is active.
API Technical Discussions »

JSONP Callback

The jsonp callback should be 'callback' not 'jsonp' there is no reason you can't have both, but almost every single site that uses jsonp uses callback as the parameter, using something weird prevents people from easily making apps.

Comment

Submitted by calvin.metcalf 10 months ago

Vote Activity

  1. Approved
    10 months ago
  2. Approved
    10 months ago
  3. Approved
    10 months ago

Events

  1. The idea was posted
    10 months ago

Comments (2)

  1. Calvin,

    Thank you for your feedback. As you probably know, there is no standard for the name of a JSONP callback parameter. I have seen any number of name choices over the past couple of years -- flickr, for example uses "jsonpcallback". As Wikipedia explains (http://en.wikipedia.org/wiki/JSONP#Script_element_injection), the parameter is typically named "jsonp" or "callback". Your familiarity with jQuery probably explains your preference for the word "callback", however, "jsonp" is what we chose.

    10 months ago
  2. calvin.metcalf Idea Submitter

    flickr and mapquest are the only other sites I know of that don't use callback and both have in common that their APIs are rather old and thus probably predate the standardization.

    It is not a solely jQuery thing, but you should probably keep it in mind considering how massively popular it is.

    10 months ago