on 31/12/02 2:48 AM, Stephen ([EMAIL PROTECTED]) wrote: > I'm writing a PHP chat script and I'm rather stumped on this. I either want > the chat window to refresh when there's a new message or refresh every few > seconds but not with meta refresh, rather something with less noise (the > infamous IE clicking sound) and/or something faster. The only thing I can > think of is the header function. Any ideas?
The header() function (like everything in PHP) happens SERVER SIDE before the page hits the browser, so this won't help. META refresh is the only standard, HTML way to do it, AFAIK -- and even then, i'm not 100% sure that all browsers and user agents support it. Another option would be for javascript to refresh the page, but again, this will probably invoke the IE clicking sound. Most chat programs do use either meta refresh, or some sort of Java applet instead of refreshing. I think there are also some Flash chat things out there too. Cheers, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php