Is there a place to test Spaces Author vs Visitor mode?

I have tested my gadget using a toggle button to imitate the modes, but was wondering if there was a way to see how it would actual work before I release my gadget! Thanks in advance!

Answer this question

Is there a place to test Spaces Author vs Visitor mode?

  • GAtkins

    Thank you Rodcet! That did the trick!!
  • lcj

    oops, I just realized it should switch to visitor mode when I go to view space.. must mean my code is really wrong:)

    Here is the code, which I believe was taken directly from MS's site

    if (p_args.module.getMode() == Web.Gadget.Mode.guest) {
    img1.style.visible = false;


  • Northern Rob

    Incendy,

    This is the code I use.

    if (p_args.module.getMode() == Web.Gadget.Mode.view ) {

    } else

    {

    }


  • Is there a place to test Spaces Author vs Visitor mode?