0.1.2 • Published 8 years ago

get-json-data v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

get-json-data

Make ajax request to get the json data from browser. Not for nodejs, use request module instead.

usage

can not be more simpler:

include index.js in your html.

getJSONData(url,callback);
//callback function 
fucntion callback(err, data) {
  if (err) {
    console.log('request failed');
    return;
  }
  // do something with data
}

note

This module does not support jsonp. For jsonp request you may use jsonp module.

similar

Here is list of other popular and stable projects

##License This project is licensed under the terms of the MIT license.

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago