KoryNunn / cpjax

callback passing javascript and xtra stuff hopefully not xml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpjax

Callback Passing Javascript And Xtra stuff hopefully not XML

What

Make AJAX requests look like anything else async in JavaScript.

Usage

var cpjax = require("cpjax");

cpjax("http://www.google.com", function(error, data) {
  if (error) {
    return console.error("OH NOES GOOGLE IS DOWN");
  }
  console.log("The google homepage: " + data);
});

cpjax is a wrapper around simple-ajax, and it returns a simple-ajax Object that you can use if you want to.

About

callback passing javascript and xtra stuff hopefully not xml

License:MIT License


Languages

Language:JavaScript 100.0%