chat box (auto reload)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mantixor
Forum Newbie
Posts: 1
Joined: Mon Sep 01, 2003 12:53 am

chat box (auto reload)

Post 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?
nikhilmng
Forum Newbie
Posts: 4
Joined: Mon Sep 01, 2003 2:32 am

script

Post by nikhilmng »

well u may use javascript to do that !!
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

you would need some kind of Java Applet for this to work in an efficient manner.

Auto refreshing pages are just annoying.
Post Reply