Re: [orkut-developer] Re: newUpdatePersonAppDataRequest

2010-08-03 Thread Robson Dantas
Perfect! Supposed that you were doing that :-) Regards, Robson Dantas 2010/8/3 kh1m > I try. This is not work in my case. But your answer give me an idea > and it is work: > function saveViewerPersistence(key,value){ >var req = opensocial.newDataRequest(); >req.add(req.newUpdat

[orkut-developer] Re: newUpdatePersonAppDataRequest

2010-08-03 Thread kh1m
I try. This is not work in my case. But your answer give me an idea and it is work: function saveViewerPersistence(key,value){ var req = opensocial.newDataRequest(); req.add(req.newUpdatePersonAppDataRequest("VIEWER", key, gadgets.json.stringify(value))); req.send(checkSend)

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-15 Thread Jason
Hi Swapnil. Excellent point -- the current user has to install the app before it can store data associated with that user. So yes, if the VIEWER object returned is non-null (indicating the current user has the app), then you can safely call newUpdatePersonAppDataRequest. You shouldn't otherwise.

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-15 Thread hwked
Thanks Jason! I was able to develop a workaround :) On Oct 15, 2:50 am, "Swapnil Shinde" <[EMAIL PROTECTED]> wrote: > Jason, > Can the app write to the VIEWER's data store even if the viewer has not > installed the app? If the viewer object is not null does that mean we can > safely write to the

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread Swapnil Shinde
Jason, Can the app write to the VIEWER's data store even if the viewer has not installed the app? If the viewer object is not null does that mean we can safely write to the VIEWER's data store? Thanks, Swapnil. On Tue, Oct 14, 2008 at 2:27 PM, Jason <[EMAIL PROTECTED]> wrote: > > Your syntax is

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread Jason
Your syntax is correct, but orkut does not allow applications to write to any other user's app data other than that of the current user. This prevents me from overwriting another user's data and with potentially malicious content. Your app should still be able to fetch OWNER data, but you will onl

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread hwked
Just to add. Data retrieval using " req.add(req.newFetchPersonAppDataRequest("OWNER",'twitterid'),'userdata'); " works fine. The problem occurs in " req.add(req.newUpdatePersonAppDataRequest("OWNER",'twitterid',twit_id)); " However, if I replace OWNER with VIEWER in the above statement, it works

[orkut-developer] Re: newUpdatePersonAppDataRequest causing problems

2008-10-14 Thread hwked
Ah I just tried this, and it worked out. If I replace "OWNER" with "VIEWER" everywhere, it works out. Why isn't it working for OWNER ?? On Oct 14, 9:05 am, hwked <[EMAIL PROTECTED]> wrote: > It doesn't seem to be working for me. Neither at sandbox.orkut.com nor > at prod.sandbox.orkut.com . I al

[orkut-developer] Re: newUpdatePersonAppDataRequest problem?

2008-10-13 Thread hwked
It doesn't seem to be working for me. Neither at sandbox.orkut.com nor at prod.sandbox.orkut.com . I already tried clearing my browser cache here is the relevant piece of code: function storeSettings() { var req = opensocial.newDataRequest(); var twit_id = "ahujaankit";

[orkut-developer] Re: newUpdatePersonAppDataRequest question

2008-10-09 Thread Jason
Hi JSON. No, an initial fetch is necessary in order to retrieve the data that you want to append to. If you fire a data request for the OWNER and/or VIEWER when your application first loads, you can fetch the desired app data at the same time. If you manage the returned data in memory from that po

[orkut-developer] Re: newUpdatePersonAppDataRequest problem?

2008-10-03 Thread Jason
Yes, this issue has been fixed in the sandbox. If it is still not working, you may need to clear your browser's cache, which may be storing the outdated JavaScript. - Jason On Oct 1, 7:05 am, "A. Chapin" <[EMAIL PROTECTED]> wrote: > It seems like the sandbox is up and working again. --~--~--

[orkut-developer] Re: newUpdatePersonAppDataRequest problem?

2008-10-01 Thread A. Chapin
It seems like the sandbox is up and working again. --~--~-~--~~~---~--~~ 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 f

[orkut-developer] Re: newUpdatePersonAppDataRequest problem?

2008-09-16 Thread Jason
Yes, newUpdatePersonAppDataRequest is broken on the sandbox. If you need to test your apps which rely on persistence, please use http://prod.sandbox.orkut.com instead which is configured identically to production orkut. Apologies for the slight inconvenience. - Jason On Sep 15, 11:26 pm, peps <[

[orkut-developer] Re: newUpdatePersonAppDataRequest problem?

2008-09-15 Thread peps
Any ideas anyone? If someone knows what has happened with orkut sandbox for this not to work and/or to make it work, please let me know.. On 15 syys, 15:32, "Rohan Kapoor" <[EMAIL PROTECTED]> wrote: > I have tried the same thing it is not working for me also. > > > > On Mon, Sep 15, 2008 at 5:5

[orkut-developer] Re: newUpdatePersonAppDataRequest problem?

2008-09-15 Thread Rohan Kapoor
I have tried the same thing it is not working for me also. On Mon, Sep 15, 2008 at 5:55 PM, peps <[EMAIL PROTECTED]> wrote: > > My application worked fine and I didn't make any changes and now it > won't work. I think this is because my > data isn't saved for some reason. Please could someone hel

[orkut-developer] Re: newUpdatePersonAppDataRequest error

2008-09-12 Thread Jason
Hi Marcelo. Yes, newUpdatePersonAppDataRequest doesn't appear to be working on the sandbox at the moment. If you haven't already, please file a new bug report in the OpenSocial issue tracker: http://code.google.com/p/opensocial-resources/wiki/IssuesTab?tm=3 Until this bug is resolved, you should