AJAX :: Post Multiple Xmlhttprequests For Chat?

Apr 8, 2010

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.

View 4 Replies


Similar Messages:

Web Forms :: Develop Web Based Chat Application With Private And Group Chat Option

Sep 5, 2012

I want to develope web based chat application for an organization

My requirements are,

1. Group chat
2. Private chat
3. All chat information will save in sql server
4. if user minimize the browser,it will blink like gtalk and face book

View 1 Replies

Architecture :: How To Save A Large Data Of Chat Room In Chat Application

Nov 3, 2010

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 ?

View 3 Replies

Data Controls :: Save Chat Messages To Database Using SignalR Chat

May 7, 2015

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.

View 1 Replies

Professional Ajax Chat?

Apr 8, 2010

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?

View 7 Replies

AJAX :: Create Facebook Like Chat In .Net

Jun 25, 2010

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.

View 1 Replies

AJAX :: Development Of Facebook Chat?

Feb 22, 2011

Am developing an application that looks more of facebook but at a point i got stuck on the area of the chat

how to develop similar chat in dat of facebook. Am usiing asp.net 3.5 with c#

View 2 Replies

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.

View 5 Replies

AJAX :: Make A Non-voice Chat Support Tool?

Nov 17, 2010

I need to make a non-voice chat support tool for a client in ASP.NET 3.5 framework.Can anyone tell me how can i make it using ajax control toolkit??

View 4 Replies

Built Chat Application Using Asp.net3.5,sqlserver2005,ajax?

Mar 21, 2011

i need to built chat application using asp.net3.5,sqlserver2005,ajax..

where to get easy source or idea to develope from the scratch...

View 4 Replies

Javascript - Web Based Chat, Using Ajax Timers , Will It Perform For Large Number Of Users

Jan 25, 2010

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 ?

View 1 Replies

C# - Multiple POST Parameters, Some Containing XML?

Oct 20, 2010

I'd Like to be able to have my web service accept multiple POST parameters, some of which will be XML. Is this possible? The code below will generate a server error:

WebResponse resp = (WebResponse)req.GetResponse();
string programId = "1";
string statusMessages = statusMessagesXML.ToString(SaveOptions.DisableFormatting);

[code]...

View 1 Replies

How To Post Multiple Forms To Different Page

Feb 19, 2010

I have 2 forms on one page. 1 search form which only contains a text field and a submit button and 1 registration form which has a few required fields. The search form need to post data to search.aspx.

<asp:TextBox ID="search" runat="server"></asp:TextBox>
<asp:ImageButton ID="searchBtn" runat="server" PostBackUrl="/search.aspx" />

everytime when searchBtn was clicked, the page will check all the required fields from registration form. Does anyone know how to solve this problem?

View 2 Replies

MVC :: Multiple And Single Delete Together In 2 Using Post

Mar 6, 2010

I am currently Developing application in MVC2 I want to used mutiple form tags(<form>) in My application. In My View I have Created a table which has Delete option which i am doing through Post for Individual Delete so i have Create form tag for each button. as mention By Stephen Walther [URL] i also want user to give option to delete mutiple records so i am providing them with checkboxes.This form should have all the values of checkboxes and all. so form gets render Like this in browser

[Code]....

View 7 Replies

Using Multiple Form Tag And Post Them To Another Page?

Oct 7, 2010

I don't know it's even possible but I try to achieve to post data from one page to another using the second form.The problem is I need a form tag for the user interface containing callback panels etc. I want to put a second form with some hidden-field:

<form id="postForm" method="post" action="target.aspx">
<input type="hidden" id="id" />
</form>

I submit the form from javascript with jquery:

$("#id").val(id);
$("#postForm").submit();

Is there a way access the value of the hidden field on the target page?

View 1 Replies

Multiple Parameters Using POST With Handler?

Nov 9, 2010

I want to send multiple parameters using POST to an asp.net handler. How is that possible or is there any other work around for this?

View 2 Replies

MVC :: Get Multiple Listbox Data On Post?

May 3, 2010

I got a form with 2 listboxes , the listboxes pass data to each other using jQuery , and i want the data on the 2nd listboxI will upload all the code including the javascript just in case , altough , if it is something totally basic you dont need to look on it because it does works , I am showing all the code just in case

Also, I want to get it using ViewDataModel , I tried getting it with string and didnt succes , nighter tried to find it in FormColletion and it wasnt even existing in the count

here is the code

Controller:

[Code]....

Body:

[Code]....

Javascript:

[Code]....

View 2 Replies

SQL Server :: Post Multiple Declare Statements?

Oct 26, 2010

I know how to do this with 1 declare statement, but for this there are multiple one's. This example sql statement has 2, however my actual one will have 29.

[Code]....

View 14 Replies

MVC :: EF Update Multiple Rows In One Form Post?

Dec 14, 2010

I am a seasoned desktop developer but I am new to MVC, EF and web development in general. I have been following the MVC Music Store tutorial but using my own database and project instead of the one from the tutorial.

My project is a web front end to a configuration database that lets us implement new Markets (a.k.a. Customers) for our IVR. For the View that allows the user to modify an existing Market I use a ViewModel class that has two properties. One property (clientData) is an EntityObject populated from a single row of the Client_Data table. The other property (callflowSeq) is a List of EntityObjects populated from about 40 rows of the Callflow_Sequence table.

The "Get" Edit method of the MarketsEditViewModel displays the Edit View fine but when I modify the data only the Client_Data table gets updated.

Here is my ViewModel:

[Code]....

Here are the Edit methods from my Controller:

[Code]....

Here is my View:

[Code]....

It seems that I can't use UpdateModel() to update the Callflow_Sequence table but I can't figure out how to do it manually.

View 12 Replies

Web Forms :: Multiple Text Box Entry Post To Different Labels?

May 17, 2010

Im really new to ASP.net. I am hoping to work with one TextBox, one Sumbit button and an unlimited amount of Labels....

I am wanting to input information into a TextBox then click a submit button and post to Label1, then empty the Textbox ready for further information.

The further information will then be added to Label2 after clicking the same submit button for the second time, then repeat this process for Label3, Label4 etc etc

View 6 Replies

How To Bind Post Data With A Model That Contains Multiple Models

Nov 4, 2010

I have a parent View that uses a few partial views. Each partial view has its own custom model. The parent View is a model containing each of the partial view's model. In other words this parent View model is NOT flat.

How do i get POST data to bind with the parent's model object? Do i have to write a custom model binder?

Update I'm not binding to a collection of objects of the same type (ie: a collection of uploaded files). I'm binding to object that contains multiple of objects. For example:

[code]....

View 1 Replies

Web Forms :: Post Multiple Files To A Web Form With Httpwebrequest?

Jul 3, 2010

I have a web form on a web page like this:

<form method="post" action="http://poston.domain.com/" enctype="multipart/form-data"> <input type="hidden" name="function" value="somevalue"> <input type="text" name="username" value="somevalue2"> <input type="text" name="password" value="somevalue3"> <input type="file" name="picture"> <input type="text" name="pictto" value="0"> <input type="submit" value="Send"></form>

I can post all the required data to that form on that page by calling the following function:

Public function GetResult(ByVal File As Byte)) as stringDim request As HttpWebRequest = CType(WebRequest.Create("http://poston.domain.com), HttpWebRequest)request.Method = "POST"request.KeepAlive = TrueDim boundary As String = "-------------------------" + DateTime.Now.Ticks.ToString("x")Dim header As String = vbCrLf & "--" + boundary + vbCrLfDim footer As String = vbCrLf & "--" + boundary + vbCrLfrequest.ContentType = String.Format("multipart/form-data; boundary={0}", boundary)Dim contents As StringBuilder = New StringBuilder()contents.Append(vbCrLf)contents.Append(header)contents.Append("Content-Disposition: form-data; name=""function""" & vbCrLf)contents.Append(vbCrLf)<br/>contents.Append("functionname1")contents.Append(header)contents.Append("Content-Disposition: form-data; name=""username""" & vbCrLf)contents.Append(vbCrLf)contents.Append(myusername)contents.Append(header)contents.Append("Content-Disposition: form-data; name=""password""" & vbCrLf)contents.Append(vbCrLf)contents.Append(mypassword)contents.Append(header)contents.Append("Content-Disposition: form-data; name=""pictto""" & vbCrLf)contents.Append(vbCrLf)contents.Append("0")contents.Append(header) contents.Append("Content-Disposition: form-data; name=""picture""; filename=""Untitled.jpg""" + vbCrLf)contents.Append("Content-Type: image/jpeg" + vbCrLf)contents.Append(vbCrLf)Dim BodyBytes As Byte() = Encoding.UTF8.GetBytes(contents.ToString())Dim footerBytes As Byte() = Encoding.UTF8.GetBytes(footer)request.ContentLength = BodyBytes.Length + File.Length + footerBytes.LengthDim requestStream As Stream = request.GetRequestStream()requestStream.Write(BodyBytes, 0, BodyBytes.Length)requestStream.Write(File, 0, File.Length)requestStream.Write(footerBytes, 0, footerBytes.Length)requestStream.Flush()requestStream.Close()Dim ret As String = NewStreamReader(request.GetResponse.GetResponseStream).ReadToEndreturn retend function

View 1 Replies

Web Forms :: Multiple Radio Buttons Are Set As TRUE In Post Back?

May 9, 2010

In my code, I cannot use a radiobuttongroup due to formatting constraints. This is a page where the user can update the data. So I have

<asp:TableCell ID="TableCell1" CssClass="answer" runat="server">
<asp:RadioButton ID="PatientYes" GroupName="Patient" runat="server" />
</asp:TableCell>
<asp:TableCell ID="TableCell2" CssClass="answer" runat="server">
<asp:RadioButton ID="PatientNo" GroupName="Patient" runat="server" />
</asp:TableCell>

If I have the case where one button is set when the page is displayed and the user changes to the other value, BOTH are coming back as TRUE. How can I just get the value selected by the user?

View 1 Replies

Web Forms :: How To Post A Message To Multiple Friends Wall On Facebook

Oct 5, 2012

i have an app to post on friends wall but i want it to prompt to choose from friends like adding friends by checkbox so that the messsage can be sent to all i selected simultaneously.

View 1 Replies

Handle Multiple Forms Post Action Under A Parent Form For Same Aspx Page?

Jul 27, 2010

I have an asp.net application in which I have a parent form and in that on load I am adding sub forms dynamically having a submit image button..

When I am clicking the button of one form then I am able to read the hidden variables using request under parent form .But on clicking the second button the hidden variables of parent form are having null value although i have assign the value to them using context variables.

how can i handle mulitple form action for same page

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved