Hi Aj, I was having the same problem and them I had tried something direrent. Try to use the code as follows:
<div if=${!theviewer}"> <p>4.Viewer is empty or null</p> </div> I hope this answers your problem. I'm looking for a more updated documentation too. So if you have already found let me know. Best Regards, Guilherme Gama On 4 abr, 20:20, aj <a7a4.s...@gmail.com> wrote: > In my widget I would like to change the messaging if the visitor does > not have the widget installed. But I don't see a way to perform this > check correctly > > <Require feature="opensocial-0.9" /> > > <script xmlns:os="http://ns.opensocial.org/2008/markup" type="text/ > os-data"> > <os:ViewerRequest key="theviewer"/> > </script> > > <script type="text/os-template"> > <div if="${'theviewer' != ''}"> > <p>1.Viewer is not null</p> > </div> > > <div if="${empty theviewer }"> > <p>2.Viewer is empty</p> > </div> > > <div if="${ 'theviewer' =='' }"> > <p>3.Viewer is empty</p> > </div> > > </script> > > 1.Viewer is not null, is printed always > 2.Viewer is empty , is never printed. > 3.Viewer is empty, is never printed. > > What is the correct syntax? Is this documented somewhere in entirety? > > Thanks, > AJ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---