Start messenger chat without adding as contact first? possible?

Last post 02-07-2010, 11:47 PM by Kenneth. 5 replies.
Sort Posts: Previous Next
  •  12-11-2009, 12:34 PM 57709

    Start messenger chat without adding as contact first? possible?

    Currently the normal way to chat with someone using the chat messenger is to add a person to my contact first and then click on the name on my list to start the chat.
     
    So i would like to check how can i start a messenger conversation without the need to add the person as a contact first?
     
    Example:
    A webpage will list all the person online, apon clicking the a person name (a hyperlink), it would start a messenger chat window and could immediately start the converstion, even when both of them are neither in each other's contact list.
     
    Possible?
     
  •  12-12-2009, 9:46 AM 57722 in reply to 57709

    Re: Start messenger chat without adding as contact first? possible?

    There is a function Chat_OpenContact which allows you send users directly to the im_chatform.aspx page.

    For examples:

    <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx"></script>

    Users
    <a href="#" onclick="Chat_OpenContact('IE')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=IE</a>
    <br>
    <br>
    <a href="#" onclick="Chat_OpenContact('Netscape')"><img src="CuteSoft_Client/CuteChat/Images/avatar.gif">UniqueName=Netscape</a>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-15-2009, 12:17 AM 57758 in reply to 57722

    Re: Start messenger chat without adding as contact first? possible?

    It works, thanks :)
     
    But now i have another question: How do i know who is online using the web messenger chat?
     
    Currently in the demo, it is using base on user database to track the login and "online" status (within a onlinetimeout offset value) but that doesn't mean they have the chat messenger opened and ready to chat.
     
    Is there a way to retreieve the users that is chatting or online with the messenger opened? Or im missing something in the demo?
     
    thanks for the help again :)
  •  12-15-2009, 10:56 AM 57760 in reply to 57758

    Re: Start messenger chat without adding as contact first? possible?

    Seems i've found the answer:
     
    CuteChat.ChatWebUtility.GetMessengerOnlineStatus(loginusername)
     
    :)
  •  02-07-2010, 12:15 AM 58562 in reply to 57722

    Re: Start messenger chat without adding as contact first? possible?

    hi ....
    i really didn't get point ... how can i do that and where do i have to writte it
     
     
     
    Thanks Bro
     
  •  02-07-2010, 11:47 PM 58569 in reply to 58562

    Re: Start messenger chat without adding as contact first? possible?

    Hi wafa,
     
    you can add the code in any page. For example, I create a new page like below.
     
    when you click on the link, the messenger will open automatically and chat to user "test"
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    4.   
    5. <html xmlns="http://www.w3.org/1999/xhtml" >   
    6. <head runat="server">   
    7.     <title>example</title>   
    8. </head>   
    9. <body>   
    10.     <form id="form1" runat="server">   
    11.     <div>   
    12.         <script src="CuteSoft_Client/CuteChat/IntegrationUtility.js.aspx"></script>   
    13.             <a href="#" onclick="Chat_OpenContact('test')">UniqueName=test</a>   
    14.     </div>   
    15.     </form>   
    16. </body>   
    17. </html>  

    Regards,
     
    Ken
View as RSS news feed in XML