homepage Welcome to WebmasterWorld Guest from 54.166.105.24
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

    
PHP forced reload after submit
and more...
creeper




msg:1291499
 8:16 am on Sep 24, 2002 (gmt 0)
Hi,
I have a frame in my site where you can post a message (some sort of "chat"). After clicking submit, the frame reloads in your browser, BUT not in the browser of the other persons that have this page/frame opened... I would want a PHP script (that loads a 1pixel image on the site) that would scan (checksum?) the "latest messages" file to see if it changes (every 3-5 seconds) and if YES, it would force a reload from the server, of the "chat" frame in everybody's browser... Is it possible? I am not a PHP programmer so what I tried was like... total krap... I screwed up the complete frame so I ask for your help... :)

Also, when a visitor comes on my site, browse to somewhere and then decides to make a shortcut, the shortcut points to the frame in where he clicked, or to the page where he is, "inside" my site. Is it possible to force the shortcut to point to index.html even if you clicked in "left_corner.html" to make the shortcut?
Thanks!

 

jatar_k




msg:1291500
 6:16 am on Sep 25, 2002 (gmt 0)

Welcome to WebmasterWorld [webmasterworld.com] creeper

Take a look in this thread I think someone posted a frameset force bit in there

handy, generic javascript coding [webmasterworld.com]

as for the first part I am not really sure but we'll see if someone else can lend us an idea.

creeper




msg:1291501
 8:58 am on Sep 26, 2002 (gmt 0)

Thx... I'll search for more info on the forced reload thing...
The plan is to put an 1X1 image in my frame, and with this pixel reloaded every 3 seconds, I can check the archive to see if it changes... and reloading a 1x1 image will not hurt the connection...
Anyway... We'll see!
Yan.

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