Hello Friends,

I am beginner in open social development. I request please help me in
following code.

<![CDATA[
                <script>
                        gadgets.util.registerOnLoadHandler(init);

                        function init(){
                                var req=opensocial.newDataRequest();
                                var obj=req.newFetchPersonRequest('VIEWER');
                                req.add(obj,'person');
                                req.send(loadData);
                        }

                        function loadData(responseData){
                                var person=responseData.get('person').getData();
                                
aboutme=person.getField(opensocial.Person.Field.ABOUT_ME);
                                
document.getElementById("msg").innerHTML=aboutme;
                        }
                </script>

                <div id="msg"></div>

]]>

I want to fetch ABOUT_ME field of OWNER. But everytime it shows
UNDEFINED in output.

Is there somthing missing in the code?

Please help.

Thanks in advance.

Regards,
Amit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to