A robust lightweight wrapper for asynchronous http requests
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 303 commits behind ded:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
build
make
src
tests
.gitignore
.gitmodules
Makefile
Makefile.js
README.md
package.json
reqwest.js
reqwest.min.js

README.md

It's AJAX

All over again.

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.