That advice is stale. Now all activity creation is user mediated and
inherently need to happen before window.unload happens.
Sachin

On Sat, Jun 20, 2009 at 10:34 AM, Ranjan <[email protected]> wrote:

>
> Hi All,
>
> 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.
>
> Thanks,
> Ranjan
>
> >
>

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

Reply via email to