Skip to content
A robust lightweight wrapper for asynchronous http requests
Find file
Pull request Compare This branch is 303 commits behind ded:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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.

Something went wrong with that request. Please try again.