apolineaire
4/26/2018 - 7:21 PM

Ajax call (w/ boring cross-origin problems)

Baisc Ajax call , useful when there's bori... when there's cross-origin problems .

    $.ajax({
    url: searchURL,
    type: 'GET',
    crossDomain: true,
    dataType: 'jsonp',
    success: function(myData){
      console.log(myData)
    },
    error :"ajax call not working"
    }