I am trying to read json data from a remote service and its not working.
my code:
var schema = { data: "data", model: {} };var warmup = new kendo.data.DataSource({ schema: schema, transport: { read: function(options) { $.ajax( { url: kendo.toString(baseUrl + wkdayID), success: function(result) { console.log(kendo.toString(baseUrl + wkdayId)); options.success(result); } }); } }, filter: { field: "IS_WARMUP", operator: "eq", value: "1" }, error: function() { console.log(arguments); } }); warmup.fetch();
however when I modify the url portion to a string and add it to the baseUrl like this:
url: kendo.toString(baseUrl + "21")it works for some reason. does anyone know whats going on? I would like to be able to set that "21" dynamically.