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);
}
});
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