I've been hiding/displaying divs appropriately to simulate different
views. This seems to work well enough, though it's kind of a pain in
the ass to be worrying about what elements need to be toggled with
every interaction. I also use quite a number of global variables to
keep track of the state of the page. Also potentially dangerous, but
it's been manageable so far.

To link between the profile and canvas, it's necessary to pass
variables via GET. So I did the hacks to get the app_id and uid, then
I constructed the URL:

    var html =
        '<a href="' + ORKUTURL + '/Application.aspx?uid=' + uid +
        '&appId=' + appid + '&up_action=share&up_video_id=' + vidid +
'" target="_top">Share</a>' +
        '<a href="' + ORKUTURL + '/Application.aspx?uid=' + uid +
        '&appId=' + appid + '&up_action=new" target="_top">Make Your
Own</a>';

The target=_top is necessary to keep the entire orkut page from
displaying within the iframe. And then I retrieved the get param with
_args()["up_action"];

rich
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition" 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