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 6 of 6

Thread: Refreshing

  1. #1
    New Coder
    Join Date
    Jan 2004
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Refreshing

    I am new to this FORUM.......

    i have look evrywhere for a script that automatically refreshes the page evry so often !!!

    If some1 knows how 2 do this, could they plz tell me how to do it ??

    Thanks in advance !!

    Démon

  • #2
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Put the following in between the <head> tags:

    <META HTTP-EQUIV="refresh" CONTENT="5; URL=pagetorefresh.html">

    5 is the interval in seconds between refrshes. pagetorefresh.html is the name of the page you want to load, if you want the same page to load (ie refresh current page) then put the name of that page itself.

    Hope this helps.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    document.location.reload();

    be careful with that, if u use it wrong the page will reload forever.

  • #4
    New Coder
    Join Date
    Jan 2004
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yea much !! thanks a lot !! so if i wanna put the page that i have put the script on..... shall i just put index.html ???

  • #5
    New to the CF scene
    Join Date
    Jan 2004
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If the page you want to refresh is called 'index.html' then put:
    <META HTTP-EQUIV="refresh" CONTENT="5; URL=index.html">

  • #6
    New Coder
    Join Date
    Jan 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to display the refreshed page only after..

    Hi,

    I have a site that display the latest Stock Market indices value. But I need to refresh this page on an interval of 5 second. Currently I am using META to do the refresh.. but I am wondering is there any way to refresh and display this page only when it has prepared.. rather than leaving it a blank page while it is loading..

    Regards,
    Alex Chan
    Regards,
    Alex Chan


  •  

    Posting Permissions

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