Answers for "how works ajax"

1

ajax code

$.ajax({
    type: 'GET',
    dataType: 'json',
    url: url,
    timeout: 5000,
    success: function(data, textStatus ){
       alert('request successful');
    },
    fail: function(xhr, textStatus, errorThrown){
       alert('request failed');
    }
  });
Posted by: Guest on April-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language