Hello,

Shouldnt it be:

req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
"viewer");

Cheers!
Rajiv
rajspace.net

On Fri, May 23, 2008 at 7:04 PM, Vijay Gaur <[EMAIL PROTECTED]> wrote:

> 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<http://localhost/test.aspx?uid=%27+uid+%27&viewName=%27+viewName>
> ;
> };
>
>
> --
> Regards,
> Vijay Gaur
>
> >
>


-- 
-------------------------------------------------------------------------------------------------
Stockoogle.in > Harnessing Google power for your equity analysis
-------------------------------------------------------------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
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