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
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
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
3 matches
Mail list logo