Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2002
    Location
    Virginia Beach, VA
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Content Driven Refresh Question

    Ok, so I have developed a status page for my work. PHP code Mysql backend it works pretty well. But, here is my problem. Say 5 people are logged into this status page. And one of them changes a status of something on that page. How can (if I can) make the other active pages (the other 4 people) auto refresh when new information is submitted. I cannot expect them to manually refresh the page when status's change. So it needs to be content driven, change content of one of the items, and the server?? will force a refresh. If possible.

    Thanks

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,050
    Thanks
    0
    Thanked 251 Times in 247 Posts

    Server polling

    You can't force a refresh on the client from the server. The client must be the one to initiate a request to the server to get the updated page. You can put an auto-refresh script on the status page, say after every 2 mins the page is automatically refreshed.

    setTimeout("location.reload()", 120000);


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •