Locked Application Creator Q's

  • Friday, September 23, 2005 8:41 AM
     
     
    Heyas!

    I was just wondering if there was anyway to detect which user created (started) the application via javascript? And if it was possible to get the email adresses of the users using the application?

    Thx
     - Pepper

All Replies

  • Friday, September 23, 2005 2:34 PM
     
     Answered
    in the documentation at: messengerp2p.chm::/techref/objectmodel/objects/users/properties/Inviter.htm


    if (window.external.users.inviter == window.external.users.me) {
    document.write("I am the Inviter."); } else {
    document.write("I am not the Inviter.");
    }

     

  • Friday, September 23, 2005 11:58 PM
     
     Answered

    You can grab the e-mail address by using the User.EMail property.

    Ex.
    var myUsers = window.external.Users;
    var myLocalUser = myUsers.Me;
    document.write( myLocalUser.EMail );

    There's more information in the documentation and you will need the PassportSiteID flag to do it.