[orkut-developer] Re: Canvas and profile view to the same file?

2008-08-22 Thread Jason
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

[orkut-developer] Re: Canvas and profile view to the same file?

2008-08-21 Thread Marcio Martins Rodrigues
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

[orkut-developer] Re: Canvas and profile view to the same file?

2008-08-21 Thread Frisoni
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(); >

[orkut-developer] Re: Canvas and profile view to the same file?

2008-08-21 Thread Ramanpreet Singh
Hey Peps Try this var currView = gadgets.views.getCurrentView().getName(); if (currView) { if (currView == "canvas") { ; } else if (currView == "profile") { ; }