Can someone show me how I need to return the data back from the (PHP) server to my client? I'm trying to render my app on profile view in sandbox and making a simple call like this-
<script type="text/os-data" xmlns:os="http://ns.opensocial.org/2008/ markup"> <os:HttpRequest format="json" refreshInterval="1" key="root" href="............/profiledata2.php?owner=${owner.id}"/> </script> <script type="text/os-template" xmlns:os="http://ns.opensocial.org/ 2008/markup" require="root"> Test root = <span>${root.test}</span> </script> Then my php file is written like this (simple)- --------------- $v = json_encode(array('root' => array('test'=>1))); echo $v; -------------- My profile then shows up as Test root = <blank> It doesn't return '1' as the value which I was expecting. TIA. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

