Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
NOTE: This has not been maintained anymore
CoffeeScript JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.env
.gitignore
README.md
example.coffee
index.js
node-jquery.coffee
package.json

README.md

NOTE: This is deprecated. This repository has not been maintained anymore. Please see https://github.com/tmtk75/jquery-xhr.

node-jquery-xhr

Provide window, jQuery and $ to node integrating jquery, jsdom and xmlhttprequest.

How to use

Let's say you use npm, add "node-jquery-xhr" to dependencies section of package.js

require("node-jquery-xhr")

You can access like this

window.document
body = $("body")

Also $.ajax, too.

$.ajax({
  method: 'get',
  url: 'http://www.yahoo.com',
  success: function(r) {
    console.log(r);
  }
});

History

1.8.3

0.1.1

  • support $.ajax using xmlhttprequest

0.1.0

  • first release

License

MIT License

Thanks

Something went wrong with that request. Please try again.