Re: Web messenger questions (online users list and a firefox bug)

  •  02-23-2009, 10:33 PM

    Re: Web messenger questions (online users list and a firefox bug)

    Hi,
     
    For the 1 , the best way is to generate the javascript data by asp.net.
     
    for example:
     
    <%
    CuteChat.ChatPlaceUser[] users=new CuteChat.ChatPlaceUser[0];
    CuteChat.ChatPortal portal=CuteChat.AppSystem.Instance.GetCurrentPortal();
    lock(portal)
    {
     if(portal.IsMessengerStarted)
     {
      users=portal.Messenger.GetAllUsers();
     }
    }
    %>
    var onlinelist=[
    <%
    foreach(CuteChat.ChatPlaceUser user in users)
    {
    %>
    { uid:'<%=user.Identity.UniqueId%>'
        ,name:'<%=user.DisplayName%>'
        ,status:'<%=user.OnlineStatus%>'
    },
    <%
    }
    %>
    ]
     
    Regards,
    Terry
     
View Complete Thread