> > That advice is stale. Now all activity creation is user mediated and > inherently need to happen before window.unload happens. >
Thanks for the input. Does it mean that unlimited updates can be posted, or still we need to do digest posting. If we need to do digest posting, any suggestion on the the right time/event? Sanjay As suggested at >> http://code.google.com/apis/orkut/docs/orkutdevguidelines.html#updates >> I am posting the updates in window.unload event as below: >> >> $(window).unload( >> function () { >> postActivity(title, body); >> } >> ); >> >> function postActivity(title, body) { >> var params = {}; >> params[opensocial.Activity.Field.TITLE] = title; >> params[opensocial.Activity.Field.BODY] = body; >> var activity = opensocial.newActivity(params); >> opensocial.requestCreateActivity(activity, callable); >> } >> >> If I call the 'postActivity()' within the 'unload' function as cited >> above, then opensocial.requestCreateActivity() is not working, whereas >> if I call 'postActivity()' any where else it works fine. >> >> Needing help. >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" 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-orkut?hl=en -~----------~----~----~----~------~----~------~--~---

