From 63a71c644ec6a1e71faf61fa6a8ba2c5be540eb3 Mon Sep 17 00:00:00 2001 From: Kaylin Pavlik Date: Tue, 25 Sep 2018 11:02:51 -0500 Subject: [PATCH] Create client.js --- javascript/client.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 javascript/client.js diff --git a/javascript/client.js b/javascript/client.js new file mode 100644 index 0000000..cd23a25 --- /dev/null +++ b/javascript/client.js @@ -0,0 +1,11 @@ + +$.ajax({ + url: "https://data.nasa.gov/resource/gymh-eyc2.json", + data: {}, + success: function(data) { + $("pre").text(JSON.stringify(data, null, "\t")); + }, + error: function(msg) { + //todo: handle error gracefully + } +});