0
Answer

Page method call from JQuery doesn't work in Safari

nikhil

nikhil

9y
539
1
I am calling a page method from JQUERY which is working fine in Chrome and Firefox however it doesn't work in Safari, can anyone please help?
function setVariables(city, area, date, pooja, isInstant) {
$.ajax({
type: "POST",
url: "Default.aspx/setVariables",
data: "{city: '" + city + "',area:'" + area + "',date: '" + date + "', pooja: '" + pooja + "',isInstant:' " + isInstant + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnsetVariablesSuccess,
failure: function (response) {
}
});
}
function OnsetVariablesSuccess(response) {
if (response.d == 1) {
}
}