-
30 Apr 2009 5:19 PM #1
Template/JSON object Question
Template/JSON object Question
When using a template to render a JSON object to a panel how can I access public properties of the JSON object?
For instance my JSON object is like:
{Location:{lattitude:0, longitude:0}} how can I make the template render these? I have tried doing something like
to no avail. What is the proper way to reference these properties in the template?Code:var locationTplMarkup = [ 'Location: {Location.lattitude}, {Location.longitude}<br/>' ];
-
30 Apr 2009 5:32 PM #2
Found the solution, Xtemplate and
Code:'<tpl for="Location">', '{lattitude}, {longitude}</br>', '</tpl>


Reply With Quote