Introduction:
Here I will explain jQuery chatting application in asp.net using c# with example. By using jQuery ChatJS plugin we can implement chatting application like FaceBook in asp.net using c#. ChatJS is a full-featured, lightweight, Facebook style jQuery plugin for instant messaging. ChatJS also comes with a server side implementation for ASP.NET/SignalR out of the box.
Description:
In previous article I explained 6 jQuery News ticker plugin examples, 4 SpellChecker Plugin examples, 11+ best jQuery Scroll to top plugins, 8 jQuery clock plugin examples and many articles relating to jQuery Plugins, JQuery, Ajax, asp.net, SQL Server etc. Now I will explain how to implement chatting application like facebook in in asp.net using c# with jQuery.
In previous article I explained 6 jQuery News ticker plugin examples, 4 SpellChecker Plugin examples, 11+ best jQuery Scroll to top plugins, 8 jQuery clock plugin examples and many articles relating to jQuery Plugins, JQuery, Ajax, asp.net, SQL Server etc. Now I will explain how to implement chatting application like facebook in in asp.net using c# with jQuery.
ChatJS chat implemented with
two script files one is jQuery.chatjs.js plugin it depends completely on client
side. In
order to implement the interface between jquery.chatjs.js and the server, you
need an adapter. The first one, jquery.chatjs.signalradapter.js, is meant to be
used with ASP.NET and SignalR. This is the preferable way for working with
ASP.NET. The second one is jquery.chatjs.longpollingadapter.js which is the
generic client-side implementation. This adapter can work with whatever
server-side implementation you use, like PHP, Java or NodeJS, as long as the
proper end-points are implemented.
By
using chatjs plugin once we setup server side it’s very simple to write
clientside code that will be like as shown below
$.chat({
// your user information
user: {
Id: 3,
Name: 'John
Silver',
ProfilePictureUrl: 'http://www.foo.com/avatar/123'
},
// text displayed when the other
user is typing
typingText: ' is
typing...',
// the title for the user's list
window
titleText: 'ChatJS
demo chat',
// text displayed when there's no
other users in the room
emptyRoomText: "There's
no one around here.",
// the adapter you are using.
There are 2 implementations out of the box:
// SignalRAdapter and
LongPollingAdapter (server independent).
adapter: new
SignalRAdapter()
});
|
Demo
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
47 comments :
Sir can you guide me to dynmically bind data in jquery i am new plz guide me sir step by step...
Really Nice !!
the sample in the web site has mvc implementation. do you have sample that is implemented in webforms?
Sir Please tell me how to encrypt the Password in database
sample code plz
hi sureshsir,
i want one application to convert speech to text in asp.net if u know plz help me
i wish there is complete demo for it
hi can any tell me how to run the application
can i know where it is
how to dwnld this source code?
Sir,how to bind dynamic users in asp.net, sir im n trouble, i hope u will help
It's nice code
sir It doesn't opens in below 4.5 v of .net plz sir do something i need this code...
What does it mean by "setting the server side" sir and can you tell me what are the steps to be performed on downloading the chatjs plugin ? I am new to .Net sir please help
sir guid me to chat application in visualstudio 2010
were is the source code .. jQuery Chatjs Plugin is not working
Please share the solution to my mail : santuchitloor@gmail.com
Thanks in advance
hi sir
i want to make forum like facebook in asp.net with c#.
plz sir help me ,it is required in my project
Dear sir,
I want to implement chat plugin in my project so sir please explain properly .
that i am understand .
otherwise mail me dummy code its urgent.
abhipatil186@yahoo.com.
Thanking you,
Hi sir, Please mention step by step to get used...
Hi Sir,How to write code SignalR Adafter .Please Reply to me.
nice @
Sir please give me the source code of this application. I need it very urgently. My Email Address is mailtoshivam786@gmail.com
Please Sir.
please send me the full code of this application i need it urgently.
kmkavitra@gmail.com
Dear Suresh i want to create chating web application which could be used on system connected via lan so please help me..............
Dear suresh please send me example application in chat.js to my email pilla.murali89@gmail.com
it would be very helpful to me
i want to make chatting applicatio c# can you help me???
pls guide me how to connect db to signalR
plz post full chat application code...
giv the full chat application...
hi.. can we maintain this chat within every page of a whole web application ?
Because when I am entering any text then go to another page it's removed. So, can we maintain it like facebook chat app ?
good article
Hi Suresh, Could u please let me know how multiple chats will b possible in Chart Js
Please suggest !!! Will be a great help
please send me the full code of this application i need it urgently.
aragorn.ellessar@gmail.com
hi sir i want to implement this code in to my asp.net website so please help me how can i implement
Dear sir,
I want to implement chat plugin in my project so sir please explain properly .
that i am understand .
otherwise mail me dummy code its urgent.
nilesh.b.amrutkar@gmail.com
Thanking you,
hi sir how to add user in this chat ?
how to add uesr Id and also add friend ?????
Please provide sample code using MVC, SignalR and Chat.js It'll really be a great help for me.
plz i'm new ,how can i use a signalr because not work for me
sir Nice Code
I want total code sir Plz..
sir i am using this its very good i modified this as i want
but not able to refresh selected user chat window
Plz help me on this ..
thank in advance..
This is good one. Can i get this code???
plz send code plz
Please send me the code for my mail id.
vamshidharbandaru@gmail.com
Note: Only a member of this blog may post a comment.