Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am developing a web application in ASP.NET with simple chat concept using SignalR,but I am not satisfied with it. I am intended towards chat app like Gmail or Facebook. I have downloaded ChatJs but I dont know how to install that plugin in my web applicaion.
XML
<head runat="server">
    <title></title>

    <script src="Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.signalR-1.1.4.js" type="text/javascript"></script>
    <script src="signalr/hubs" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript">
        $(function () {

            var IWannaChat = $.connection.myChatHub;

            IWannaChat.client.addMessage = function (message) {
                $('#listMessages').append('<li>' + message + '</li>');
            };

            $("#SendMessage").click(function () {
                IWannaChat.server.send($('#txtMessage').val());
            });

            $.connection.hub.start();
        });
    </script>

    <div>
    <input type="text" id="txtMessage" />
        <input type="button" id="SendMessage" value="broadcast" />
        <ul id="listMessages">
        </ul

    </div>
    </form>
</body>

This is the code that I have written for simple chat application.Could anyone tell the steps after downloading the chatjs plugin?I searched for that a lot but I didn't get exactly what I want! Please help. I am new to .Net.Thanks in advance!!
Posted
Comments
Maciej Los 25-Oct-14 17:41pm    
Gmail is email client, not chat application. Facebook is not chat application too ;)
Member 12488588 13-Jun-16 6:00am    
test

1 solution

 
Share this answer
 
Comments
Member 11176603 26-Oct-14 5:38am    
How to setup jquery chat plugin in my application. I really don't have any idea about it.Can you tell me the steps I am supposed to do after downloading the plugin? @Tadit Dash

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900