<div dir="ltr">Hello again,
I started using jTemplates for part of a sites registration process. Everything appears correct, yet we are getting errors when parsing the template. Specifically on line 589 in the jTemplate code, the eval always leaves the variable undefined.
Here is the template:
<ul id="userPhotoList">
{#foreach $T.img as image}
<li>
<div>
<br/>
</div>
<img alt='$T.image.FileName' src='$T.image.ImageUrl' />
<a href='$T.image.RemoveUrl'>Remove</a>
</li>
{#/for}
</ul>
And the JavaScript:
function DisplayUserPhotos(data)
{
$("#UserPhotoContainer").setTemplateURL('/Content/js/registration/photolayout.tpl');
$("#UserPhotoContainer").processTemplate(data);
}
The "data" comes from an ajax call that gets a Json result. Everything appears valid, but always dies in the in the spot mentioned above.
Any ideas?
Thanks
Alec
</div>