473,387 Members | 3,781 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,387 software developers and data experts.

Refresh problem with chat

1
I write a chat program with jsp but i have a problem with refresh( i use this <meta HTTP-EQUIV="Refresh" CONTENT="10"> tag in head tag of main page). And i use <s:include value="/chatviews/inputchat.jsp"/> tag also in that page. Sometimes the text (in textfield) was lost even when i was writing the message. So could you please tell what should i use or how should i do?

with thanks
Khuma
Oct 11 '11 #1
1 1503
Rabbit
12,516 Expert Mod 8TB
You should use AJAX instead to refresh just the chat window rather than the whole page.
Oct 11 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Neil Padgen | last post by:
I'm trying to forward a TCP port on localhost to a TCP port on a remote machine, but to do that I have to go through a telnet gateway. This involves a little chat script: expect "tn-gw-> "...
1
by: Targa | last post by:
After I submit a form from a popup window, I use the following code to close the popup and refresh the parent window. <a href="#" onclick="window.opener.location.reload();self.close();return...
3
by: John Wright | last post by:
I am trying to create a very simple chat program using UDP through a web page. I am having problems getting this going. All the examples I've seen deal with remoting or application variables, or...
2
by: qqq | last post by:
I need a page to be refreshed, even if the user navigates back to it with the 'Back' button in the browser. I've put "Reponse.expires=0" in the Page_load event, but the desired refresh isn't...
0
by: awais1989 | last post by:
i want to make a simple chat client for LAN as show in the attached image. can some1 give me code for this? http://img215.imageshack.us/img215/6379/tempimgmx4.jpg
2
by: vikramb | last post by:
HI Iam working on a task in which i need to refresh the tomcat cache with out restarting it when there is any new entry in the properties file , My question is in the server.xml if...
4
by: dmorand | last post by:
Ok, I'm very very new to javascript and am trying to use it with some coldfusion I'm doing. I'm trying to have a page refresh when a user changes a selection in a drop down list. Here is...
1
by: abaybas | last post by:
I'm creating a page in which a certain "content" part of the page is refreshed using ajax. I do this by using a div#content, and it's child div#container. the code: ... ...
1
by: Amzul | last post by:
hello all i use <meta http-equiv="refresh" content="300" /> in the head but i notice that the pictures in the page are not refreshing i have picturs *.png its graphs so i can tell nothing is...
4
kelleyvanevert
by: kelleyvanevert | last post by:
Hello everyone, This question is often asked, and I know there are lots and lots of answers that I could be using, but I just want a clear good answer. I am making a website (for playing a game...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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.