$(document).ready(function () {
AjaxManager.GetData();
});
var AjaxManager = {
GetData: function () {
var obj = "";
var jsonParam = "";
var serviceUrl = "../Home/GetData";
AjaxManager.GetJsonResult(serviceUrl, jsonParam, false, false, onSuccess, onFailed);
function onSuccess(jsonData) {
obj = jsonData;
}
function onFailed(error) {
alert(error.statusText);
}
return obj;
},
GetJsonResult: function (serviceUrl, jsonParams, isAsync, isCache, successCallback, errorCallback) {
$.ajax({
type: "GET",
async: isAsync,
cache: isCache,
url: serviceUrl,
data: jsonParams,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: successCallback,
error: errorCallback
});
}
}
- Home
- Download
- _Source Code (Payhip)
- _Payhip
- Category
- _C#
- _ASP.NET MVC
- _ASP.NET Core 2.2
- _ASP.NET Core 3.0
- Blazor
- _Blazor All Topics
- _Radzen Blazor
- _Syncfusion Blazor
- _Blazored
- JQuery
- _Kendo UI
- _Kendo UI ComboBox
- _Kendo UI Grid
- _Kendo UI Window
- _Kendo UI DatePicker
- _AmCharts
- SQL
- Reporting
- _RDLC Report
- _Crystal Report
- _All Reports
- Courses
- _Download Courses
- Blog
- Result
- Contact
- About Me
0 Comments