I have a similar problem, but I'm not getting it to work. This is my function: function gotoCanvas() { var supported_views = gadgets.views.getSupportedViews(); gadgets.views.requestNavigateTo(supported_views["canvas"]); }
On my html: <a class="smLink" href="<?=this->baseLink?>friends" onclick="gotoCanvas ();return false;">friends</a> On my xml: ... <Require feature="views" /> </ModulePrefs> Any help is greatly appreciated. On Oct 17, 11:51 am, Ricardo <[EMAIL PROTECTED]> wrote: > I don't konw why, but the first code is working now. Thanks for the > attention. > > On 16 out, 15:22, Jason <[EMAIL PROTECTED]> wrote: > > > Your first snippet should work, and this is the preferred method for > > switching views. Can you share your application's URL and point me to > > where your requestNavigateTo code gets triggered? > > > - Jason > > > On Oct 14, 7:24 pm, Ricardo <[EMAIL PROTECTED]> wrote: > > > > I've tried this method: > > > var supported_views = gadgets.views.getSupportedViews(); > > > gadgets.views.requestNavigateTo(supported_views["canvas"]); > > > > and this: > > > var canvas_view = new gadgets.views.View("canvas"); > > > gadgets.views.requestNavigateTo(canvas_view); > > > but it didn't work. > > > So, I've tried this: > > > gadgets.views.requestNavigateTo(gadgets.views.ViewType.FULL_PAGE); > > > and this worked for Firefox but not IE. > > > > Finally I ask, what is the right method to go from the profile to > > >canvasview? > > > > I'm using the 0.7 version, and I've put the <Require feature="views"/> > > > in the xml. > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---