You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Jerome Paul <je...@lonelyplanet.com.au> on 2009/10/27 04:36:41 UTC
os-data and os-template issue
Hey all,
Let me know if there's a more appropriate place to post this, I just didn't see a shindig users mailing list.
I'm trying to write a gadget using os-data and os-template
<![CDATA[
<script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/markup">
<os:HttpRequest key="pois" href="heritagePois.json" refreshInterval="0" format="json"/>
</script>
<script type="text/os-template" require="pois">
<ul repeat='${pois["content"]["378675"]}'>
<li>
${Cur}
</li>
</ul>
</script>
]]>
This snippet retreives the poi information heritagePois.json but I can't find a way to write out each poi, just specific individual poi's
Just to be clear the json heirarcy is in the form:
pois["content"]["378675"]
pois["content"]["469044"]
pois["content"]["..."]
Is there anyway to put a wildcard or loop through this json hash?
Jerome
This email, including attachments, is intended only for the addressee and may be confidential, privileged and subject to copyright. If you have received this email in error, please advise the sender and delete it. If you are not the intended recipient of this email, you must not communicate to others content that is confidential or subject to copyright, unless you have the consent of the content owner.