JSFiddle - React, Tailwind, and code Playground

by epinapala

JavaScript

$(function() {

    $.ajax({
        type: "POST",
        url: 'http://open.api.ebay.com/shopping?callname=FindProducts',
        dataType: "jsonp",
        jsonp: "callbackname",
        crossDomain: true,
        //processData: false,
        statusCode: {
            404: function() {
                alert("page not found");
            }
        },
        data: {
            'appid': 'ebaysjinternal',
            'version': '771',
            'siteid': '0',
            'responseencoding': 'JSON',
            'QueryKeywords': '753759971632',
            'MaxEntries': '3'
        },
        success: function(result) {
            alert('success');
            alert(result.status);
        },
        error: function(data) {
            alert('fail');
            console.log(arguments);
        }
    });


});