Just wondering what you were using... The FireBug FireFox extension is a big 
help.

-----Original Message-----
From: John Ruffin [mailto:[EMAIL PROTECTED]
Sent: Friday, May 23, 2008 09:55 AM
To: opensocial-orkut@googlegroups.com
Subject: [orkut-developer] Re: Need help - very basic question

Please elaborate on the "code debugger application". Please reference any 
documentation.

-----Original Message-----
From: Pravin [mailto:[EMAIL PROTECTED]
Sent: Friday, May 23, 2008 09:25 AM
To: 'Orkut Developer Forum'
Subject: [orkut-developer] Re: Need help - very basic question

Hi Vijay,Try to use code debugger application. It will help you to see 
whatoutput you are getting exactly. I assume viewer is friend ofapplication 
owner. Sometimes it gives error for visitor who is nothaving any relation with 
application owner, I am not sure though.Check if your code is not giving any JS 
error.Thanks,PravinOn May 23, 6:59 pm, "John Ruffin" wrote:> I believe you have 
to make a request for the owner data (e.g. data.get('owner').getData(); ). 
Additionally, you probably want to use single quotes.>> Hope this helps,>> John 
Ruffin>> -----Original Message-----> From: Vijay Gaur [mailto:[EMAIL 
PROTECTED]> Sent: Friday, May 23, 2008 08:34 AM> To: 
opensocial-orkut@googlegroups.com> Subject: [orkut-developer] Need help - very 
basic question>> 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