Results 1 to 2 of 2

Thread: HELP! custom script needed?

  1. #1
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb HELP! custom script needed?

    Hey! can anyone help me? I need a script that auto refreshes a page once it is updated. something like an ongoing thing. Hope u guys know what' i'm trying to refer to.

    Here's a sample

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    <html>
    <head>
    <meta http-equiv="refresh" content="5;url=http://my.com/page.htm">
    ....
    </head>
    <body>...</body>
    </html>



    The number is the number of seconds before the refesh, and the url is the url to be forwarded to. Using just content="5" would refresh to the current page (URL ommitted), creating a loop.
    Note that the loop will only exist if you do link the same page (or, I suppose, a similar page) with the refresh code on it.
    Use content="0;..." to have it refresh automatically (this is for using as a redirect to another page; you wouldn't want this to the same page, or it would just load endlessly, never stopping to display the page).

    Also, be careful with this. With a slow connection this would be a pain, and it could just be very annoying on your site, depending on the use.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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