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 3 3417
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.
Hi,
Thanks for that...
any urls which might explain how to do this?
Thanks
JJ
"dlbjr" <oo**@iforgot.c om> wrote in message
news:%2******** ********@tk2msf tngp13.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.
<script language="javas cript" >
//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.XMLHT TP");
try{
http.Open("GET" ,url,false);
http.send();
if(http.readySt ate==4) {
data1.innerHTML = http.ResponseTe xt
}
}
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the page to auto-refresh every 4
seconds....if the user un-checks the checkbox, I'd like to turn off the auto
refresh.
The page is as follows:
|
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 window to open a child window thru
javascript
window.open
2) I have some functionality in the child window that changes the data
|
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.
|
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 contents of the shopping cart. If the
whole page is refreshed, then the default page loads (aught), the shopping
cart displays the correct contents (yippy), but the user is nolonger where
they were (augh).
Any suggestions would be greatly...
|
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
data automatically.
The problem is that when i click on the dropdownlist, i post back
information to the page, then after that the next refresh will brin me a
alert message populated by internet explorer saying:
"The page cannot be refreshd...
| |
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
data automatically.
The problem is that when i click on the dropdownlist, i post back
information to the page, then after that the next refresh will brin me a
alert message populated by internet explorer saying:
"The page cannot be refreshd...
|
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
that sound and not to see my page refresh..
Unfortunly it's not an option, to disable windows-sounds hehe
|
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 another window,
the
web page quietly refreshes in the background.
Hosted in Outlook, the refresh causes Outlook to come to the front on
every refresh. Or in XP, causes the toolbar icon to flash.
|
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 other input fields available to fill in. I use the
JavaScript OnChange function (=clientside) that creates a querystring
and does a refresh of the page. It works fine.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |