I can't do more than one update in my app (or a fetch after an
update). I've been fighting this for 2 hours now, here is the simplest
way I've found to reproduce the problem:

function test() {
        trace('test');
        testUpdate();
};

function testUpdate() {
        var stringToSend = "some data";
        var req = opensocial.newDataRequest();
        req.add(req.newUpdatePersonAppDataRequest("VIEWER", "testdata",
stringToSend));
        req.send(handleTestUpdate);
};

function handleTestUpdate(returnedData) {
       trace('handleTestUpdate() returnedData: ' +
JSON.stringify(returnedData));
};


Here is the output (I have an onclick event that triggers the call to
test) after the first call is done, I click the link again to call the
update a second time.

test
handleTestUpdate() returnedData: {"responseItems_":{"null":
{"originalDataRequest_":{"type":"UPDATE_PERSON_DATA","parameters":
{"id":"VIEWER","key":"testdata","value":"some
data"}},"error_":false}},"globalError_":false}
test
handleTestUpdate() returnedData: {"responseItems_":
{},"globalError_":true}


any help much appreciated!
Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to