Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
forked from ded/reqwest

A robust lightweight wrapper for asynchronous http requests

Notifications You must be signed in to change notification settings

meltingice/Reqwest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) { }
});
reqwest({
  url: 'path/to/data.jsonp?callback=?',
  type: 'jsonp',
  success: function (resp) {
    Q('#content').html(resp.content);
  }
});
reqwest({
  url: 'path/to/data.jsonp?foo=bar',
  type: 'jsonp',
  jsonpCallback: 'foo',
  success: function (resp) {
    Q('#content').html(resp.content);
  }
});

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.

About

A robust lightweight wrapper for asynchronous http requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%