You might consider using the KendoUI MVVM data model and templates with AJAX.
Post to your server endpoint - it should return a JSON response:
function getRoutineDetailData(e) {
//get data from server
$.ajax({
url: "http://dot.com/your_endpoint.php",
dataType: "jsonp",
type: "GET",
data: { userID: userID},
success: function(response) {
routineInfo = response.results;
routine_viewModel.set("info", routineInfo);
}
});
}
Now bind the results:
//bind the results to the viewmodel
var routine_viewModel = kendo.observable({
info: []
});
The view should also have a template:
<script id="routineInfo-template" type="text/x-kendo-template">
<div id="routineHeader" >
<span id="RoutineText">${title} created on ${entry_stamp} by ${user_name}</span>
</div>
</script>
Your view should then call the function to do the server-post using data-show as well as use the data-model to give you access to the data ie. ${title} used in the template:
<div data-role="view" id="view-routineDetail" data-show="getRoutineDetailData" data-model="routine_viewModel" data-title="routineDetail">
<div id="routineInfo" data-template="routineInfo-template" data-bind="source: info" ></div>
</div>
This is a quick explaination and more can be found at http://docs.kendoui.com/getting-started/mobile/mvvm