AJAX :: How To Realize Chat Between Exactly Two Visitors
Aug 25, 2010
I want to realize the following with AJAX and .NET, but I don't know the best way to do it.Person A comes to the website, clicks a button 'I want to chat'. Then Person B comes and he should see a list where he can choose 'chat with A'.I have two questions:- What is the best way to address B's message to A? After B has sent his message to the server, how does the message get to A?- Is it possible to invoke a "update-chat" function for A when a message for him arrives? (Of course, A's browser could ask the server 'do you have a message for me?' every second, but this seems not a good solution.
I'm developing chat application on asp.net mvc, in my app, user can create room and invite other join to chat, but don't need to save chat room information.So, I designed to save all chat message ,room information and user info in Session and clear it when owner close the room.I'm worry about stressing server when I save alot of data (include room info, user info, and message) in Session if there are up to 5000 rooms created and alot of messages transfered in that room.Is my solution good enough ? is it ok to save in Session ?
I had create an application to allow user to register new project.Manager will chat with user base on the project ID(chat room id = Project ID) and store this conversation to database.
Example: User A register project A, other user cannot join the chat room A.
I have many projects ( site1.example.com, site2.example.com, site3.example.com etc ) and I should realize common login for these sites on .NET (web-services ? )
I create asp.net mvc application and have task to create ability to move parts of page. For example, admin has ability to move poll to top page, to bottom, to center etc. Who tried to make it? My opinion - page has many divs, each div has webusercontrol, divs have position:absolute (or relative, not sure) and thru admin you can set which div has which values.
how it works to be on the chat site Facebook.When I watched this chat via Firebug, so there they have made with retrieving messages over and over again in the loop.
I used setInterval ("function", time);They're just loading the chat for a change.So how does such a professional ajax chat?
How to realize auction expiration? Make it inactive after 1-3-5 days? Something like eBay?I am using asp.net c#.I have "active" boolean field in my auction table.
l'd like to create facebook like chat application in asp.net. This is real situation and I cant implement any workaround....since there would be large no. of users using the application.I need to implement 1-1 chat functionality where user can chat with multiple users by opening multiple chat windows much similar to facebook.
I have developed a chat by xmlhttprequests. It supports one user at a time. I am using post requests. It works fine. Now, I want that all users of my site can chat with each other. So, when someone is talking with more than one user at a time, I need to handle those multiple requests. So, what should I do ...?
1. Should I go for multiple xmlhttprequest ? ( I think its not a good idea, as no. of users is uncertain, secondly it will be a havoc to the page)
2. Should I pass multiple arguments in post request for differenct chats(separtated by some sign ). ( But its not a good idea too, as no. of active chats at a time is not certain, secondly I have to pass whole arguments whether one is chatting with just a single person.
3. Should I pass an array ? If I can ... Can I pass an array in arguement. How to achieve this ? and how to retrive this in server page.
the problem is: "~/Index.aspx" and "~/Column.aspx?ColumnId=1" are actual URLs and navigation bar: "Home > Column1" really works,
but "~/Content.aspx?ColumnId=1" is only the beginning part of actual dynamic URL, for example: it may be ~/Content.aspx?ColumnId=1&NewsId=12598 or ~/Content.aspx?ColumnId=1&NewsId=37215
all the previous Urls are articles of Column1 with same "~/Content.aspx?ColumnId=1" but are followed with different "&NewsId=number".
So, how can I realize this kind of navigation bar?
as all we know that we can create very simple chat using ajax timer & web service , it runs well for few users .
i want to leaverage same idea for site where 5000+ users will be there in chat room , messages are stored in queue hold in memory * dispatched as user request that is through java script timers calling page method or service ,
how well it will perform ? i know GTalk implements XMPP protocol(jabber) for the web chat seems it will be difficult to got XMPP way ?
If I have a basic web form for our company's intranet and all users are logged in to the domain via AD authentication, can I extract a visitors user name in c#?
I have stored resumes in my database and i have retrive it from asp.net web page by creating linkbutton...i can view ,download the resumes which i stored in my database.My issuse is when i view one resume example (domnic resume)then no of visitor for domnic resume should be count .if again i view that resume no of visitor should be 2...how can i do that in asp.net?
I am interesting on log down the recent 100 visitors around the world whom have visited to my website and display their country information and IP address on the website developed by Silverlight platform.
Where can I get accurate data for detecting the visitors' IP address and geo-location information?
We are looking to create a website that displays information to all new visitors to a site, i.e. welcome,The big problem is that our website is not allowed to use long-lasting cookies (i.e. over 20 minutes). Does anybody know of any way we can determine whether a user has visited the site before or not. As another restriction, we can not add anyform of registration to the system. The application is being created in ASP.Net 3.5.
I just created a download counter on my website that increments when a download link is clicked. It also records the times of the downloads in a database. Along with that I was wondering if I could gather some general information about location of the visitor to my website that clicked the download link. Is there a way to do that? Maybe you're not supposed to try to get overly specific data because that would be a sort of invasion of privacy but if I could collect something that would tell me an approximate location of the visitor to my website that clicked the download link that would be nice if that can be gotten without too much trouble.
i want to do the online purchase option with my web application. i dont know how to do that, because if we miss single dollar then that will be the serious issue for us, so please explain me how to transfer the visitors amount to my client account.