I have some data from DB then I need to load. Something like this
$.ajax({
type: "POST",
url: "something.aspx",
data: "{ 'something': 'something'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(res) {}
});
I want returning string res.d to be added to var a, how this can be achieved.
$(document).ready(function () {
var a =
});
Basically I am using xDHTML schedule unit view. Schedule units needs to be loaded on page load. So how to ad string from DB to var