-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathajaxRequest.js
30 lines (30 loc) · 1.01 KB
/
ajaxRequest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
return $.ajax({
type: 'POST',
url: '/Global-Appointment/Account/CheckSeatAllotment',
headers: headers,
dataType: 'JSON',
async: false,
data: {
// while navigating to the VFS appointment page
// open the network tab in the developer tools in your browser
// and submit the form then copy the values from the request payload
countryId: "31",
missionId: "60",
LocationId: "487",
// Location: "Centre d’application pour le Portugal, Rabat"
},
cache: false,
success: function (data) {
if (data != "") {
$("#LocationError").text(data);
$("#btnContinue").attr("disabled", true);
$("#btnContinue").removeClass("EnableButton");
$("#btnContinue").addClass("DisabledButton");
$(".drpVisaCategory").prop("disabled", true);
}
else {
$(".drpVisaCategory").prop("disabled", false);
}
return data
}
}).responseJSON;