JSFiddle - React, Tailwind, and code Playground
JavaScript
$.ajax({
url: 'http://www.jsfiddle.net/echo/jsonp/',
// make the timeout really short so we always hit it
timeout: 5,
dataType: "jsonp",
data: { echo: "Hello World!" },
error: function(jqxhr, textStatus) {
console.log("failed with error: " + textStatus);
},
success: function(data, jqxhr, textStatus) {
alert(data.echo);
}
});