1. on 0.7 please use feature views Got an error saying gadgets.views has no property because must include that in your xml: <Require feature="views" /> Obtain views: views = gadgets.views.getSupportedViews(); currentview = gadgets.views.getCurrentView();
2. gadgets.views.requestNavigateTo(views.canvas,params); or views.profile EX: http://code.google.com/p/opensocial-resources/wiki/NavigationBetweenViews On Feb 25, 10:44 am, AKM <[EMAIL PROTECTED]> wrote: > I have question regarding Surface in orkut apps. (opensocial-0.7) > > 1. How do I get current Surface a.k.a views [http://code.google.com/ > apis/opensocial/articles/tutorial/tutorial-0.7.html]? > I tried gadgets.views.getCurrentView(). > Got an error saying gadgets.views has no property > > Tried opensocial.getEnvironment().getSurface().getName() > Got an error saying opensocial.getEnvironment().getSurface().getName() > is not a function > > 2. How do navigate to other views? [Considering earlier problems] > > It would be really helpful if somebody can show me a running example. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---