Here's the correct calls for navigation between views: gadgets.views.requestNavigateTo( new gadgets.views.View( 'canvas' ) ); gadgets.views.requestNavigateTo( new gadgets.views.View( 'profile' ) );
Also, like Jelena said, don't forget to add <Require feature='views' /> to your ModulePrefs. -Dustin Jelena Kolokotronis wrote: > requestPermission didn't work (or actually didn't do anything) the last > time I tried, but that was more than a week ago. I'm waiting for > virality functions (read: requestShareApp) to see how will the whole > invite/install thing going to work. If you want to show 'install app' > type request or something, I think the only way right now is to forward > user to your app about page and hope he'll add it from there. > > requestnavigate should afaik, unless you didn't put require featire > views and unless you're using prototype when you'll have to put that > hack for json collisions. > > > Jelena > > carneiro wrote: > >> Do anyone knows if this methods are working correctly? >> >> gadgets.views.requestNavigateTo generates js error: "F.getName is not >> a function"; >> opensocial.requestPermission generates js error: "Invalid auth token." >> >> Can anybody help? That's the way i'm using it: >> >> RequestNavigateTo code >> gadgets.views.requestNavigateTo(gadgets.views.ViewType.FULL_PAGE,{}); >> >> ------ >> >> RequestPermission code >> var oyoCallback = function($data){ >> trace($data); >> }; >> opensocial.requestPermission(opensocial.Permission.VIEWER, "VocĂȘ >> permite que seus dados sejam usados neste aplicativo?", oyoCallback); >> >> ------ >> >> Am I doing something wrong? >> >> Thanks. >> >> >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---