How does container make user data available to gadget 
------------------------------------------------------

                 Key: SHINDIG-104
                 URL: https://issues.apache.org/jira/browse/SHINDIG-104
             Project: Shindig
          Issue Type: Test
          Components: OpenSocial
         Environment: windows, asp.net 2.0
            Reporter: Robby Zhu
            Assignee: Cassie Doll


Hi,

I am trying to figure out where the data for the gadget code below will come 
from in the container site we are setting up.  I've pasted my code below my 
questions.

My questions:
a. Where does the data come from? 
b. Does it come from url query #st=...? --(i saw it's encoded)
c. How does container make the user data available for the  "#st" value?
d. How does gadget server parse "#st" value?

There is a function in a gadget document:/file. Here's the code....

function onLoadFriends(data) {
  var viewer = data.get('viewer').getData();
  var viewerFriends = data.get('viewerFriends').getData();

  html = new Array();
  html.push('<ul>');
  viewerFriends.each(function(person) {
    html.push('<li>' + person.getDisplayName() + "</li>");
  });
  html.push('</ul>');
  document.getElementById('friends').innerHTML = html.join('');
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to