473,386 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Chat room type textarea

Ady
I'm developing a kind of chat facility whereby a user can
type text in a box at the top and submit it to a central
database. At the bottom there is a textarea which
contains a running history of both the users comments and
comments intended for the user.

I've had to use two frames here because whenever there is
a refresh on the page (or a postback), I can lose text if
I am typing in the top box. Is there a way around this?

Secondly, in the history textarea (white textarea with a
blue background) when the screen refreshes it flashes
annoyingly. Any way around this?

Can I update the textarea without the need for a refresh
or postback? I've dabbled with a Web Service but this
still posts back.

What is the most professional way of doing this?

Many Thanks

Ady
Nov 17 '05 #1
2 1319
"Ady" <ad***********@360software.co.uk> wrote in message
news:4d****************************@phx.gbl...
I'm developing a kind of chat facility whereby a user can
type text in a box at the top and submit it to a central
database. At the bottom there is a textarea which
contains a running history of both the users comments and
comments intended for the user.

I've had to use two frames here because whenever there is
a refresh on the page (or a postback), I can lose text if
I am typing in the top box. Is there a way around this?
Not really. The submission form and the history display should definitely
be in separate frames or iframes. Besides the problems you've already
described, consider the traffic consequences of having the entire history
content round-tripped between client and server with every submission.

Secondly, in the history textarea (white textarea with a
blue background) when the screen refreshes it flashes
annoyingly. Any way around this?

Can I update the textarea without the need for a refresh
or postback? I've dabbled with a Web Service but this
still posts back.


Have a look at the thread at
http://groups.google.com/groups?hl=e...TNGP10.phx.gbl
for a better approach to updating the history display. It'll avoid both
heavy round-tripping and the display anomalies.
Nov 17 '05 #2
Ady
Many Thanks that great. Ady
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: |-|erc | last post by:
<?php // Get the names and values for vars sent by index.lib.php3 if (isset($HTTP_GET_VARS)) { while(list($name,$value) = each($HTTP_GET_VARS)) { $$name = $value; }; };
2
by: |-|erc | last post by:
Take a look at PHP chat with no login screen! Go straight to chat www.chatty.net very fast loading too. Try changing your alias from guest, and click the SEND button, it works. But change it...
1
by: Scott Nonnenberg [MSFT] | last post by:
The C# IDE will be there and ready to answer your questions about current, about-to-be-released, and future versions of the C# IDE. They're responsible for your experience as you type C# code in...
3
by: Dexter | last post by:
Hello all, I need to build a chat using ASP.NET (VB), this chat is to the online communication with customers. I would like to know what is best. To use webservices or to use remote script? ...
4
by: JIM.H. | last post by:
Hello, I need to write a chat room web application in .net 1.1, does anyone know any sample application I can use to start?
1
oll3i
by: oll3i | last post by:
how do i run this example ? with openjms package com.ociweb.jms; import java.io.*; import javax.jms.*; import javax.naming.*;
4
by: hussainiyad | last post by:
Hi experts ,i,m doing a chat room project in it i wanna to create a iframe (e.g in gmail when we want to chat then a window will come )i wanna the same type of window in my chat project, can...
1
by: =?Utf-8?B?dHZpbg==?= | last post by:
How to create Chat room in asp.net for unlimited members pls help me, if you know web site having free code or not free for creating chat room. or pls send code for creating chat room or...
1
by: aliusmankhan | last post by:
Hi all I want to make a chat room, In-Browser Chat Room, I want a server side and a client side, The client side will be for message posting. all posted messages will be shown on the server side...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.