Troubleshooting the Window Live Presence API Problem. RRS feed

  • Question

  • Hello. I am an administrator at EC21.

    On EC21.com, we currently provide web messenger for our members through the Window Live Presence API. However, we found some problem with the Window Live Presence when trying to login with new account on live.com.  (It works well in case of previous live.com account)

    Could you please advise us how to troubleshoot this problem? Is there any new API that we can use OR can we solve this problem with the previous solution? Please refer to below for the script:

    <div id="innerFrame"></div>

    <script type="text/javascript" language="javascript">  

       function showpresence(presence)


          var innerFrame = document.getElementById('innerFrame');


          var statusIcon = document.createElement('img');

          statusIcon.style.border = 'none';

          statusIcon.src = presence.icon.url;

          statusIcon.width = presence.icon.width;

          statusIcon.height = presence.icon.height;

          statusIcon.alt = presence.statusText;

          statusIcon.title = presence.statusText;


          var displayName = document.createElement('span');

          displayName.style.fontFamily = 'Tahoma, Verdana, sans-serif';

          displayName.style.fontSize = '9pt';

          displayName.title = presence.displayName;


          var statusText = document.createElement('span');

          statusText.style.fontFamily = 'Tahoma, Verdana, sans-serif';

          statusText.style.fontSize = '9pt';

          statusText.title = presence.statusText;


          var br = document.createElement('br');








          if ((displayName.innerText !== undefined)&&(statusText.innerText !== undefined))


             displayName.innerText = presence.displayName;

             statusText.innerText = presence.statusText;


          else if ((displayName.textContent != undefined)&&(statusText.textContent !== undefined))


             displayName.textContent == presence.displayName;

             statusText.textContent == presence.statusText;




    <script type="text/javascript" language="javascript" src="http://messenger.services.live.com/users/db28009ed3c59c7d@apps.messenger.live.com/presence/?cb=showpresence"></script>

    Tuesday, July 17, 2012 6:08 AM