JSFiddle - React, Tailwind, and code Playground

by Sunny Sharma

HTML

<p><input type="button" onclick="GetMembers();" value="Go"/></p>
<p><textarea id="json" cols="80" rows="60" ></textarea></p>

JavaScript

var GetMembers = function() {
			var url="sample.json";
			var message = "start | ";

			message += $.ajax({
                dataType: 'jsonp',
				type: "GET",                
				url: 'http://data.nasa.gov/api/get_search_results/?search=carbon+cycle',
				async: false
                
			}).responseText;
			message += " | end";
			json.innerText = message;
		}