I was only successful using the following, including the ".content" part, after debuging using this tip (item #8):
http://groups.google.com/group/opensocial-orkut/tree/browse_frm/thread/e7d1632bd6eb79ef/2471916f249307ba?rnum=1&_done=%2Fgroup%2Fopensocial-orkut%2Fbrowse_frm%2Fthread%2Fe7d1632bd6eb79ef%2F32d418c790228727%3Fq%3D%26#doc_76eeba8c1a954e6a. <li repeat="${osx:parseJson(friends.content)}"> Since I am not sure about your actualy JSON structure, try this too: <li repeat="${osx:parseJson(friends.content).friends)}"> \ \- json variable \- data pipeline variable Remember to declare the osx namespace: <script type="text/os-template" xmlns:os="http://ns.opensocial.org/ 2008/markup" xmlns:osx="http://ns.opensocial.org/2009/extensions"> Let me know if it works. On 30 abr, 08:00, "[email protected]" <[email protected]> wrote: > hi, > > example: > > { > friends : [ > { > name: 'David', > interests: 'Cooking', > }, > { > name: 'Charles', > interests: 'Hiking', > }, > { > name: 'Mary', > interests: 'Football', > }, > ] > > } > > By referring to Open Social Templates Developers's Guide in 'Fetching > data from a URL ' section the above example is copied to a file and > uploaded to server, and using <os:HttpRequest> tag like, > > <os:HttpRequest key="friends" href="http://www.servername/foldername/ > filename" authz="signed" refreshInterval="1" /> > > and by using " <li repeat="${friends}"> " data is iterated and the i > tried to print the values for name and interests which gives result > 'blank'. > > As ${Cur.name} and ${Cur.interests} is displayed blank and i tried to > give as ${friends.content.friends.name} and :$ > {friends.content.friends.interests} to get values for name and > interests but even this displayed as 'blank'. > > how to get values for name and interests of all 3 rows from the file > which is uploaded to server? > > reg, > Arun. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---

