Skip to content

jaubourg/jquery-jsonp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Eugene Fidelinjaubourg
Eugene Fidelin
and
Jul 22, 2021
9175d2c · Jul 22, 2021

History

38 Commits
Aug 21, 2012
Aug 21, 2012
Aug 21, 2012
Dec 12, 2011
Dec 12, 2011
Oct 23, 2012
Jul 22, 2021
Jul 22, 2021

Repository files navigation

jQuery-JSONP

CDNJS

jQuery-JSONP is a compact (1.8kB minified), yet feature-packed, alternative solution to jQuery's implementation of JSONP.

Licensing

jQuery-JSONP is released under the MIT license.

Download

You can download jQuery-JSONP here (full text and minified versions available).

Features

jQuery-JSONP features:

  • error recovery in case of network failure or ill-formed JSON responses,
  • precise control over callback naming and how it is transmitted in the URL,
  • multiple requests with the same callback name running concurrently,
  • two caching mechanisms (browser-based and page based),
  • the possibility to manually abort the request just like any other AJAX request,
  • a timeout mechanism.

jQuery-JSONP publishes a . a j a x ( ) l i k e f u n c t i o n c a l l e d .jsonp(): similarity ensures programmers get up-to-speed easily.

For instance, as of version 2.3.0, $.jsonp() returns a promise when used in conjunction with jQuery 1.5+.

Compatibility

jQuery-JSONP has been tested and runs within all major browsers, namely:

  • Internet Explorer 6+
  • Firefox 2+
  • Chrome 1+
  • Safari 3+
  • Opera 9+

jQuery-JSONP has also been tested with jQuery 1.3.x up to 1.7.x

Documentation