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