Yes, even though you can access the current view using JavaScript,
your code will generally be much more maintainable if you use multiple
Content sections as Frisoni suggests.
See this link for more info.:
http://code.google.com/p/opensocial-resources/wiki/MultipleContentSections
- Jason
On Aug
gt; To: opensocial-orkut@googlegroups.com> Subject:
[orkut-developer] Re: Canvas and profile view to the same file?> > > Hey Peps>
> Try this> var currView = gadgets.views.getCurrentView().getName();> if
(currView)> {> if (currView == "canvas")> { ; }> else if (cu
Just remembering, you can separated your code in XML file also...
###profile content
###canvas content
Frisoni
On Thu, Aug 21, 2008 at 10:14, Ramanpreet Singh <[EMAIL PROTECTED]>wrote:
>
> Hey Peps
>
> Try this
>var currView = gadgets.views.getCurrentView().getName();
>
Hey Peps
Try this
var currView = gadgets.views.getCurrentView().getName();
if (currView)
{
if (currView == "canvas")
{ ; }
else if (currView == "profile")
{ ; }
4 matches
Mail list logo