[OpenSocial] Re: How do you tell if your gadget is running in "showcase" or "canvas" view?

2007-12-05 Thread Chris
This method works great for me in Firefox, but breaks in Safari and IE. Have you tried it in those browsers? On Nov 14, 4:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > you need this code: > > --- > --

[OpenSocial] Re: How do you tell if your gadget is running in "showcase" or "canvas" view?

2007-11-14 Thread [EMAIL PROTECTED]
you need this code: --- function getArgs() { try { var q = document.URL.substring((document.URL.indexOf('?') +1),document.URL.length);

[OpenSocial] Re: How do you tell if your gadget is running in "showcase" or "canvas" view?

2007-11-14 Thread Brian Herbert
I believe you can use a conditional that is something along the lines of if(getSurface() == 'canvas') then it's the canvas page, otherwise it's not. Hope this helps! On Nov 14, 12:26 pm, Simon Willison <[EMAIL PROTECTED]> wrote: > According to this page: > > http://code.google.com/apis/orkut/art