Hello Erica,

   That code should be fine (you probably don't need the !! part
though).  The JS spec lives in the opensocial namespace, so if it is
defined, then the container should be supporting OpenSocial calls.

~Arne



On Nov 29, 2:55 pm, estanley <[EMAIL PROTECTED]> wrote:
> I apologize if this question has been answered in a previous
> discussion.  If it has, I'd greatly appreciate a response with a link
> to the solution.
>
> So, I'm trying to have my gadget/widget  detect whether it is in an
> OpenSocial container or not.  I've been trying to check to see if the
> opensocial namespace exists, but haven't had much luck with that
> approach--i'm guessing this is because different containers may
> implement OpenSocial differently(?)  So does anyone know of a standard
> way to detect OpenSocial?
>
> And here's  my test function, in case I'm going about this all wrong:
>
> function hasOpenSocial(){
>    if( !!opensocial ){
>        return true;
>    }else{
>        return false;
>    }
>
> Thanks,
> Erica
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to