Hi Willian,

What you say is true about ViewType? Good news is that in 0.8 specs,
there is a proposal to standardize ViewType.

You can read the following to know more -
http://groups.google.com/group/opensocial-and-gadgets-spec/msg/869cb5ffdb3980e0

Cheers,
Rohit


On May 13, 11:52 am, Willian Mitsuda <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to