ajax request in javascript
fetch('https://api.covid19api.com/summary')
.then(response => response.json())
.then(data => console.log(data))
.catch(err => {
console.log(err)
});
ajax request in javascript
fetch('https://api.covid19api.com/summary')
.then(response => response.json())
.then(data => console.log(data))
.catch(err => {
console.log(err)
});
ajax syntax in javascript
var id = empid;
$.ajax({
type: "POST",
url: "../Webservices/EmployeeService.asmx/GetEmployeeOrders",
data: "{empid: " + empid + "}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(result){
alert(result.d);
console.log(result);
}
});
ajax
With Ajax, web applications can send and retrieve data from a server asynchronously without interfering with the display and behaviour of the existing page.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us