Can you have a quick peek and see if you can detect why this would fail?
http://screencast.com/t/NgirLT9EIErZ
This is the second "template" I'm running after an ajax callback, code I believe is borderline identical...but this one just doesn't seem to run at all and I'm stumped
Can you spot the problem?
http://screencast.com/t/NgirLT9EIErZ
This is the second "template" I'm running after an ajax callback, code I believe is borderline identical...but this one just doesn't seem to run at all and I'm stumped
Can you spot the problem?
success:
function
(data) {
var
docs = data.d;
//Get the data
var
doctemplate = kendo.template($(
"#dashwidget-document-template"
).html());
//compile the template
alert(doctemplate);
var
result = doctemplate(docs);
//Run the template, SILENTLY FAILS HERE...NEVER GETS TO THE ALERT
alert(result);
$(
"#document-list"
).html(result);
//display html
},
<
div
id
=
"document-container"
>
<
ul
id
=
"document-list"
>
<
li
>Loading...</
li
>
</
ul
>
</
div
>
<
script
id
=
"dashwidget-document-template"
type
=
"text/x-kendo-template"
>
<
li
>#= Title #</
li
>
</
script
>