nikhil

nikhil

  • NA
  • 3
  • 0

Page method call from JQuery doesn't work in Safari

Mar 16 2015 3:29 PM
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) {
}
}