homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How would I do this with PHP?
auto refresh tagboard when a new message is posted.
habitat675

10+ Year Member



 
Msg#: 1121 posted 3:37 pm on Oct 12, 2002 (gmt 0)

Hi,
I've written quite a complex tagboard script that is looking very good except for one thing: I want it to auto-refresh when a new message is posted, like a chatroom. I have it refreshing after a certain number of seconds, but I'm really stuck with this one. Does anyone have any suggestions? thanks!
-erin

 

ggrot

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 1121 posted 6:10 pm on Oct 12, 2002 (gmt 0)

Meta refresh tags is the only way. HTML doesn't know what's happening on the server (ie: php). There is no such thing as persistant HTML connections in most web browsers. Well, there is server side push, but that is very resource intensive.

Slade

10+ Year Member



 
Msg#: 1121 posted 8:00 pm on Oct 12, 2002 (gmt 0)

Two possibilities:

1) Use a javascript to request a last modified time, or something, from the server and have it do a hard refresh when it reads.

2) Use a zero height frame at the top or bottom, that does a refresh more often than your big window,(or let it be the only refresh). When it comes up with new info have it refresh the big window.

I've not tested either of these, or thought them much farther than what you see...

habitat675

10+ Year Member



 
Msg#: 1121 posted 10:22 pm on Oct 12, 2002 (gmt 0)

Slade, I really like your second idea. It never crossed my mind. I think I'll try it. Thanks!
-erin

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved