JSPM

  • Created
  • Published
  • Downloads 19675
  • Score
    100M100P100Q147421F

A robust lightweight wrapper for asynchronous http requests

Package Exports

  • reqwest

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reqwest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

[visitors]: we are not currently taking support requests until we finalize a basic design Reqwest

It's HTML5 compliant ;)

The happs

git clone git://github.com/ded/Reqwest.git
cd !$
git submodule update --init
make

The codes

reqwest('path/to/html', function (resp) {
  Q('#content').html(resp);
});

reqwest({
  url: 'path/to/json',
  type: 'json',
  method: 'post',
  success: function (resp) {
    Q('#content').html(resp.content);
  },
  failure: function (err) { }
});

The Tests

make test
open http://localhost:3000

Browser support

  • IE6+
  • Chrome 1+
  • Safari 3+
  • Firefox 1+
  • Opera

Build

Node.js is required to run tests and build + minify the Reqwest code.