Open Misiu opened 12 years ago
Got this working. I had to change piece of code:
create: function (element) {
if (typeof (settings.source) == 'object') {
if (settings.source.hasOwnProperty("d")) element.data = settings.source.d;
else element.data = settings.source;
core.init(element);
} else {
$.ajax({
type: 'POST',
contentType: 'application/json; charset=utf-8',
data: '{}',
dataType: 'json',
url: settings.source,
success: function (result) {
if (result.hasOwnProperty("d")) element.data = result.d;
else element.data = result;
core.init(element);
}
});
}
}
Sorry for posting this here, but I don't know (for now) how to use github to post path.
I've added ajax instead of getJSON because but webservice wasn't parsed, now it is. Second change was adding check for "d" property. .NET is wrapping json result in extra d element for security reasons.
Hope this helps.
Hi all, I am wondering how to use external data source, but not json file, but asp webservice.
If I do this:
gantt is displayed correct,
but if I do this:
I get error:
How to correct this or any ideas how to use asp webservice result?