Hi,
  I am trying to access owner and visitors user ids along with view name
(canvas/profile). However when I check the link the uid and viewName in
query string are coming as null.

I was testing my application on Orkut sandbox and used the code below.
Appreciate any help.

function request() {
var req=opensocial.newDataRequest();
req.add(req.newFetchPersonRequest("VIEWER"), "viewer");
req.send(response);
};
function response(data) {
var viewer = data.get("viewer").getData();
var uid = viewer.getId();
var viewName=gadgets.views.getCurrentView().getName();
document.getElementById('test').src='
http://localhost/test.aspx?uid='+uid+'&viewName='+viewName;
};


-- 
Regards,
Vijay Gaur

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to