Yes, I know that, but is it safe to compare to "canvas" hardcoded string?
I thought the right way was to compare to one of the gadgets.views.ViewType constants, but the ViewType.FULL_PAGE (which according to the documentation means the canvas page in orkut) contains "FULL_PAGE", not "canvas". That's what I'm questioning. On May 13, 1:43 am, vineet <[EMAIL PROTECTED]> wrote: > Include this code in your application file > > <Require feature="views" /> > <Require feature="opensocial-0.7" /> > > <script> > function getViewName() { > return gadgets.views.getCurrentView().getName();} > > </script> > > If you are on canvas page getViewName() will return "canvas" > If you are on profile page getViewName() will return "profile" > > Hope this helps! > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---