hi i made a chat room in asp and it refreshes in a iframe. i would like to know if can stop that refresh noise casue it goes click click click click and doesent stop :( plz help
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

That is client side setting and canot be changed from the server side. Check in some other computer and it might not be present. How are you refreshing? location.reload()?
ASProbAuthor Commented:
im using meta refresh and i can change it
i just dont want that noise
This cannot be controlled from the server side.
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

To get rid of the click sound:

1. Put your chat page in an Iframe.
2. Use javascript (instead of meta) to refresh the Iframe.


ASProbAuthor Commented:
and what javascript would i use for that?
ASProbAuthor Commented:
and what javascript would i use for that?
ASProbAuthor Commented:
i also need to know how to send the contents of a DIV to an Application
>> and what javascript would i use for that?

Try this code - I have tested it and no click:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Auto refresh Iframe</title>
<script language="JavaScript" type="text/JavaScript">
function refreshPeriodic() {
   // The time out value is set to be 10,000 milli-seconds (or 10 seconds)
   timerID = setTimeout("refreshPeriodic()",10000);
timerID = setTimeout("refreshPeriodic()",10000);
<iframe src="mypage.htm" name="myIframe" width="200" height="200" scrolling="auto"></iframe>

>> i also need to know how to send the contents of a DIV to an Application

That's another question. Please post a new question and I'll help you out there.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ASProbAuthor Commented:
now it flashes....plz look at it...
You are refreshing the window from within the target frame itself, using window.location.reload() .
My suggestion to you was to refresh the frame from the main page. Also, my suggestion was using an Iframe, not regular frames.
You should try my example.
Another quick, dirty and easy way out would be to change background color to white. Then the flashing will be less visible.
I agree with JohnModig or u can use this code:

CONTENT="120; URL=">

p/s: 120 is in seconds. u can change it
To fird:

Unfortunately, your suggestion doesn't work as a solution to this question. See Author Comment, post no 2.

>> im using meta refresh and i can change it
>> i just dont want that noise
the chat system you are using is made purely with javascript (not with asp as your question states). This could be a problem for some visitors. Also, as we have seen here, you still have that refresh problem. Another, and much safer and less client demanding, way to go is to use the power of asp and Microsoft's XMLHTTP Object. The chat would then work something like this:

The message from the browser is sent to the server via Microsoft's XMLHTTP Object. Using this same XMLHTTP Object, the messages are retrieved from the server and displayed on the page. The users list comes from the server along with messages.

Meaning: Since everything happens server-side it is less demanding on the client - so faster, and works for everone! Ok?

A basic tutorial on how to do this (with full code) is here:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.