i have got the json data in my js file and now i need to pass the same to jtemplate and display. Here is the code i tried, but no data is getting displayed
$.ajax({
url: '/CMananager/getDetails',
contentType: "application/json; charset=utf-8",
data: { 'ID': ID },
type: 'GET',
cache: false,
success: function (result) {
var placeHolder = $("#templatePlaceHolder");
placeHolder.setTemplateURL("/Templates/Preview/Details.htm");
placeHolder.processTemplate(result.Name);
}
In jtemplate i'm trying to read the data like this, nothing is getting displayed
<input type="text" id="Details" name="DetailsName" style="float:left; font-size:14px; line-height:42px; padding: 0; text-align: left;width: 80%;" value="{$T.Name}" maxlength="50"/>
<span id="DetailsNamespan" style="float:left; font-size:14px; line-height:42px; padding: 0; text-align: left;width: 80%;">{$T.Name}</span>