[orkut-developer] Re: How do I know if the current view is the canvas view?

2008-05-15 Thread Rohit Ghatol (Google)
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 Mi

[orkut-developer] Re: How do I know if the current view is the canvas view?

2008-05-13 Thread Willian Mitsuda
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". Tha

[orkut-developer] Re: How do I know if the current view is the canvas view?

2008-05-12 Thread vineet
Include this code in your application file function getViewName() { return gadgets.views.getCurrentView().getName(); } If you are on canvas page getViewName() will return "canvas" If you are on profile page getViewName() will return "profile" Hope this helps! On May 12, 3:58 pm, Will