I'm trying to persist an Array of custom objects and I'getting an
error that I can't figure out.

var pictPanel = new Array();

function Pict(id, fileName, name, w, h) {
        this.fileName = fileName;
        this.w = w;
        this.h = h;
        this.name = name;
        this.id = id;
        this.x = 0;
        this.y = 0;
    }
.
.
.
function Add(pict) {
       pictPanel[ pict.id ] = pict;
}
.
.
.
function save() {
          var json = gadgets.json.stringify(pictPanel);
          var req = opensocial.newDataRequest();
 
req.add( 
req.newUpdatePersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER,
'myPanel', json) );
          req.send(onReqSave);
}

My firebug says:
json = {"1":{"fileName":"150x170.GIF","w":150,"h":170,"name":"Largura:
150 por Altura:170","id":1,"x":100,"y":100}}
Response for req.send = [{"error":{"message":"notImplemented: Non-
partial app data updates not implemented yet","code":501}}]

Am I doing something wrong?
Is it possible to be done? How can I solve this?

Thanks in advance

Marcelo Gonella


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