Re: Handle message event ???

  •  08-26-2009, 4:03 AM

    Re: Handle message event ???

    Hi,
     
    Use this Java Script:
     
    AttachChatEvent("MESSAGE",handleMessage);
     
    function handleMessage(name,type,info1,info2)
    {
        //name should be "MESSAGE"
        //type should be "NEW"
        var msg=info1;
        if(msg.Type=="USER")
        {
            //use :
            //msg.Sender.UserId,msg.Sender.DisplayName
            //msg.Target.UserId,msg.Target.DisplayName
            //msg.Html,msg.Text..
        }
    }
     
    Regards,
    Terry
     
View Complete Thread