Page 1 of 1

chat box (auto reload)

Posted: Mon Sep 01, 2003 12:53 am
by mantixor
isnt there a way to make a page reload on the browser of everyone who is viewing it, every time a form is submitted/php file run?

script

Posted: Mon Sep 01, 2003 2:35 am
by nikhilmng
well u may use javascript to do that !!

Posted: Mon Sep 01, 2003 5:22 am
by JAM
I guess you mean that, if you update the form, the page gets updated if I'm looking at it in my browser.

I dont think that is possible. When you downloaded the page, its downloaded. Javascript is only clientside, so it cant see what happens on the server.
Judging for the shoice of topic, you might want to consider the html's META REFRESH or PHP's header() function, and update the page on an regular basis.

Posted: Mon Sep 01, 2003 6:07 am
by JayBird
you would need some kind of Java Applet for this to work in an efficient manner.

Auto refreshing pages are just annoying.