Answers for "ajax request javscript"

6

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);
    }
});
Posted by: Guest on September-30-2020
1

how to call ajax javascript

var xhr = new XMLHTTPRequest();
Posted by: Guest on September-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language