JSFiddle - React, Tailwind, and code Playground

by edgardleal

JavaScript

$.ajax({
  type: "GET",
  dataType: 'jsonp',
  jsonpCallback: 'callback',
  url: "http://www.google.com.br/modelo.xml4",
    success: function(){ alert('Url Válida')},
    fail : function(){ alert('Erro ao buscar o arquivo')},
    error : function(err, ex){
        if(err.status == 404)
           alert('Xml inválido' )}
});