According to the following thread
http://groups.google.com/group/opensocial-orkut/browse_thread/thread/63246e6d5582c1c8/11f1a1506e52bb33?lnk=gst&q=parsejson#11f1a1506e52bb33
the problem is the lack of the word 'content'. Thus, replace $
{profile.numEstabelecimento} for $
{profile.content.numEstabelecimento}.

Thank you Eduardo!

On Jun 23, 6:43 pm, Bruno Fonseca <bruno.fons...@gmail.com> wrote:
> Hi,
>
> What wrong in my code?
>
> <script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/
> markup">
>    <os:ViewerRequest key="viewer" fields="name,id"/>
>    <os:HttpRequest key="profile" href="http://www.rsguia.com...";
> params="id=${viewer.id}"/>
> </script>
> <script type="text/os-template" xmlns:os="http://ns.opensocial.org/
> 2008/markup">
>    <span class="titulo">Bem vindo, <strong>${viewer.name.givenName}</
> strong></span>
>       <span>
>          <p class="estatistica_texto" align="right">
>            Qtd. Lugares Legais: <strong>${profile.numCidade}</strong>
> cidades<br>
>            Qtd. Estabelecimentos: <strong>${profile.numEstabelecimento}
> </strong>
>          </p>
>   </span>
> </script>
>
> Only ${viewer.name.givenName} is working, the ${profile.numCidade} and
> ${profile.numEstabelecimento} is empty. The result of servlet is a
> text/plain:
>
> {"numEstabelecimento":"79","numCidade":"12","numAmigo":"13","numVisitante":"158"}
>
> thanks
> Bruno
>
> On 3 jun, 14:34, DON <p.agniho...@gmail.com> wrote:
>
> > use httptemplate and html tags to display information from a url on
> > your page
>
> > eg:
> >  <script type="text/os-template"  xmlns:os="http://ns.opensocial.org/
> > 2008/markup" xmlns:osx= "http://ns.opensocial.org/2009/extensions";>
> >     <os:HttpRequestkey="xxx" href="http://www.example.com/";
> > authz="signed" format="text"/>
> >     <os:Html code="${xxx.content}"/>
> >  </script>
>
> > can chaneg format to json etc. more information on this 
> > linkhttp://wiki.opensocial.org/index.php?title=OpenSocial_Templates#Acces...
>
> > this should work..
>
> > On Jun 2, 6:50 am, sajin <sajinm...@gmail.com> wrote:
>
> > > hi all
>
> > > pls help me to displayprofileview using template . I want to display
> > > some contents from my site to my applicationprofileview. how can
> > > display that. please give sample code
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to