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

refresh page without click sound

JJ
Hi,
I am writing a web chat facility in asp.
The problem is that my chat screen has to refresh every 10 seconds to check
for any new messages in the conversation, this causes a 'click' sound.
How can you refresh a page with out a 'click' sound? I currently use the
meta refresh method, but there must be a different way, as other html chat
clients I have seen do not make the 'click' sound and do not appear to use
the meta refresh method.
Thanks
JJ
Jul 19 '05 #1
3 3403
Use JavaScript and XML HTTP to make a call back to the server and receive the newest data then just
append the new data to the bottom of the text in the screen. Why refresh the whole page every time?

'from dlbjr

'Unambit from meager knowledge of inane others,engender uncharted sagacity.
Jul 19 '05 #2
JJ
Hi,
Thanks for that...
any urls which might explain how to do this?
Thanks
JJ
"dlbjr" <oo**@iforgot.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Use JavaScript and XML HTTP to make a call back to the server and receive the newest data then just append the new data to the bottom of the text in the screen. Why refresh the whole page every time?
'from dlbjr

'Unambit from meager knowledge of inane others,engender uncharted sagacity.

Jul 19 '05 #3
<script language="javascript" >
//Set how often to update
var intsecods = 1;
//Set the url to get data from
var url = "http://www.mamma.com"

var x=setInterval("update()",1000 * intsecods)

function update() {
var http = new ActiveXObject("Microsoft.XMLHTTP");
try{
http.Open("GET",url,false);
http.send();
if(http.readyState==4) {
data1.innerHTML = http.ResponseText
}
}
catch(e){
if(e instanceof Error) {
data1.innerHTML = "no connection";
}
}
}
</script>
<html>
<head>
<title></title>
</head>
<body>
<div id="data1">
</div>
</body>
</html>
//from dlbjr

//Unambit from meager knowledge of inane others,engender uncharted sagacity.
Jul 19 '05 #4

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

Similar topics

1
by: Lew | last post by:
Hi all, I'm trying to create a page that has a user-selectable page auto-refresh option (IE 5.5). Essentially, it's a page that contains a checkbox, when the user checks the checkbox, I'd like...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
4
by: Bruce W.1 | last post by:
My web app refreshes once a minute, using a meta refresh tag. Is there a way to eliminate the tick sound emitted by IE when it refreshes? Thanks for your help.
2
by: Charles A. Lackman | last post by:
using code how can i refresh a shopping cart that is inside a frame within a table. When the user clicks "Add to Cart" the frame to the left of the page needs to refresh to display the new...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
1
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
1
by: Henrik H | last post by:
Hi all, Is there a way, to show data on a web-page, and not get the refresh sound, when data is updated/refreshed?? My data should refreash every 15 secound, so I would be pleased no to hear...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.