locked
Javascript API - WL.logout RRS feed

  • Question

  • I'm using Javascript API to get user's information. My problem is: when I use WL.logout It doesn't work. I know It because when I try to sign in again It doesn't show the username/password box.

    Is there any solution?

    (I've used this documentation: http://msdn.microsoft.com/en-us/library/hh243643.aspx#wllogout , where I could see I can use a callback function that runs when logout process is finished)

     

    My code (I use JQuery too):

     

            WL.logout(function(){
               
                //Oculta as divs necessárias
                $('#box_emails_windows_live_info').hide();       
                $('#box_emails_windows_live_botoes').hide();
                $('#box_emails_windows_live').hide();
                $('#box_somente_emails_windows_live_botoes').hide();
               
               
                //Redefine value do botão de localização Windows Live
                $('#button_localizar_hotmail').attr('value','Localizar amigos');
       
       
                //Apresenta as divs que representam a primeira tela Localizar Amigos
                $('#box_que_tal_convidar').show();
                $('#box_navegar_etapas').show();
                $('#box_gmail').show('slow');
                $('#box_hotmail').show('slow');           
               
            });


    • Edited by CaioExpert Wednesday, October 26, 2011 1:03 AM
    • Moved by Jinchun ChenMicrosoft employee Thursday, October 27, 2011 5:36 AM This a question regarding Windows Live. No Windows Live forum here (From:SharePoint - Development and Programming (pre-SharePoint 2010))
    Wednesday, October 26, 2011 12:58 AM

Answers