Scraps are not supported in OpenSocial apps on Orkut. Instead you can send a message to users using requestSendMessage() which may reach his mailbox. Sample code for it can be found here- http://orkutdeveloper.blogspot.com/2008/05/new-users-and-new-interactions.html Thanks ~Aakash http://aakash-bapna.blogspot.com
> Date: Sun, 13 Jul 2008 21:51:34 -0700> Subject: [orkut-developer] How to read > the Token and the signature to send the custom msg to scrapbook> From: [EMAIL > PROTECTED]> To: opensocial-orkut@googlegroups.com> > > Hi all,> > function > sendScrap(to, msg) {> alert("send::: "+msg+" to: "+to);> date_now = new > Date();> var hrs = date_now.getHours();> var min = date_now.getMinutes();> > var sec = date_now.getSeconds();> var milliSec = date_now.getMilliseconds();> > var tokenValue => > encodeURIComponent(document.getElementsByTagName("input").POST_TOKEN.value);> > var signatureValue => > encodeURIComponent(document.getElementsByTagName("input").signature.value);> > //var scrapText = tokenValue + signatureValue +'9'+hrs> > +'18'+min+'27'+sec+'36'+milliSec;> > // var send = "POST_TOKEN=" + tokenValue > +> "&signature=" + signatureValue + "&scrapText=" +> encodeURIComponent(msg) > + "&toUserId="+to+"&Action.submit=1";> var send = "POST_TOKEN=" + tokenValue > +> "&signature=" + signatureValue + "&scrapText=" + msg + "&toUserId="+to> > +"&Action.submit=1";> > var xml = createXMLHttpRequest();> > > > xml.open("POST", "/Scrapbook.aspx", true);> > xml.setRequestHeader("Content-Type",> "application/x-www-form-urlencoded;");> > xml.send(send);> > xml.onreadystatechange = function () {> if (xml.readyState > == 4) {> > alert("wow sent");> }> };> }> > > > I have found this code to send > the scrap but i dont know how to read> the signature and the token..can some > one help me out how could i do> it..?> > _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---