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 5 of 5
  1. #1
    New Coder
    Join Date
    Sep 2012
    Location
    Calgary, Alberta, Canada
    Posts
    24
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Force refresh of page on connection.

    Is there a way to force a page to refresh upon connecting to it?

    I have tried Google searches on this subject, however all I can find is links to making pages constantly refresh after a set amount of time.

  • #2
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    May I ask what you are trying to accomplish?

    I don't know if it still works like this, but you used to be able to use the php header() function to redirect a user after a set time. This isn't really a great method but you could try

    PHP Code:
    header'refresh: 1; url=http://www.gohere.com'); 
    That redirects the user to the url after 1 second.

    It all depends on what you're doing and what you want to use. I'm sure javascript can do what you want. Depending on what you want you're post will need to be moved to the appropriate forum section.

    Can you give us details please?
    Thanks!

  • #3
    New Coder
    Join Date
    Jul 2013
    Posts
    39
    Thanks
    0
    Thanked 2 Times in 2 Posts
    if you want auto refresh you can try this tuts...
    http://www.hscripts.com/tutorials/html/autorefresh.php

  • #4
    New Coder
    Join Date
    Sep 2012
    Location
    Calgary, Alberta, Canada
    Posts
    24
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I only want the page to refresh when you connect to the page.

    I sometimes update my page a couple times a day. Depending of people's individual settings, often their page will load using the stored info from previous connects. I often then get people sending me requests to update the info on the page, however I already have, and in order to see it, they need only to hit their refresh button which will then force in all the new content.

    I am looking for some command that will "force refresh" the page on connection. (Not a constant interval refresh).

    (On a side note, I thought I posted this thread on the HTML forum -- I'm not sure how I ended up here).

  • #5
    New Coder
    Join Date
    Sep 2012
    Location
    Calgary, Alberta, Canada
    Posts
    24
    Thanks
    3
    Thanked 0 Times in 0 Posts
    On the recommendation of another user I wish to flag this thread as closed. I have re-posted this question under the correct forum.


  •  

    Posting Permissions

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