Link to home
Start Free TrialLog in
Avatar of ASProb
ASProb

asked on

ASP CHAT

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
Avatar of amit_g
amit_g
Flag of United States of America image

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()?
Avatar of ASProb
ASProb

ASKER

im using meta refresh and i can change it
i just dont want that noise
This cannot be controlled from the server side.
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.

Regards,

John
Avatar of ASProb

ASKER

and what javascript would i use for that?
Avatar of ASProb

ASKER

and what javascript would i use for that?
Avatar of ASProb

ASKER

i also need to know how to send the contents of a DIV to an Application
ASKER CERTIFIED SOLUTION
Avatar of JohnModig
JohnModig

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ASProb

ASKER

now it flashes....plz look at it... http://n.domaindlx.com/robshomesitev3/Chat/index.html
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:

<META HTTP-EQUIV="Refresh"
CONTENT="120; URL=http://www.abc.com">

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
ASProb,
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:
http://www.tutorialized.com/tutorial/Chat-Using-ASP-XML/1413

Regards,
John