Results 1 to 14 of 14

Thread: Continous refreshing [resolved]

  1. #1

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090

    Continous refreshing [resolved]

    I use the following code to refresh a pge:
    PHP Code:
    <META HTTP-EQUIV="Refresh" CONTENT="5;URL=<? echo $_SERVER['PHP_SELF']; ?>#bottom">
    Now that code does refresh the page after 5 seconds. But it doesn't keep refreshing the page. Why is this and what can I do about it?
    Last edited by Acidic; Jul 15th, 2004 at 05:31 PM.
    Have I helped you? Please Rate my posts.

  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    The only thing I can think of is to create 2 pages that are exactly alike and have the URL in the meta tag point to the other so they just bounce back and forth, but you still have the same content, and AFAIK, it should keep doing the refresh that way. I haven't tested this theory tho.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Ok, just tested it. It works.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  4. #4

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Hmm.. I think it'd be easier to make a JavaScript function with a setTimeout to reload the page. The thing is that I didn't want to use JavaScript on this page.
    Have I helped you? Please Rate my posts.

  5. #5
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Ok, I'm using Opera and the meta refresh keeps refreshing without bouncing to the new page.

    Ok, I just tested the normal way in IE and that works too. So what is your problem?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  6. #6

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    For me it refreshes once, then stops refreshing. I got rid of the php and used the filename instead, thinking that could be it. That didn't change anything.

    It might have something to do with that this is inside an iframe. But I don't really see how that matters.
    Have I helped you? Please Rate my posts.

  7. #7
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    Ok, I've tested it within an Iframe also and it works in both IE and Opera. What version of your browser are you using?
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  8. #8

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    well firefox is 0.9.2, but IE is only 5.0 or something. That could be it, but I still don't see why it's happening.
    If it realises to refresh once, why doesn't it do it every time? It just seems weird. I might have to use JS then.
    Have I helped you? Please Rate my posts.

  9. #9
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    You don't like my 2 page idea? Seems like a lot of work to create something in JS.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  10. #10

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    Well, two pages creates one unneccesary page. JavaScript means I have to use Javascript on a pgae where I shouldn't need it. I consider both clutter. It's not absolutely necessary to make the auto-refresh though. I might just not have it.
    Have I helped you? Please Rate my posts.

  11. #11
    Member <-ShORe->'s Avatar
    Join Date
    Jul 2004
    Location
    Sudbury, Ontario
    Posts
    55
    Code:
    <BODY onLoad=window.setTimeout("location.href='pagename.html'",5000)>
    GoTta LoVe tEh TRuMpeT!

    [vbcode]If HavePepsi = True And Pepsi = Diet Then
    ThrowAway(Pepsi, Garbage)
    Else If HavePepsi = True
    Drink(Pepsi)
    End If[/vbcode]

  12. #12

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    While I'd been trying to avoid JS, I think I'll use that.
    Have I helped you? Please Rate my posts.

  13. #13
    Member <-ShORe->'s Avatar
    Join Date
    Jul 2004
    Location
    Sudbury, Ontario
    Posts
    55
    Why avoid the easiest solution
    GoTta LoVe tEh TRuMpeT!

    [vbcode]If HavePepsi = True And Pepsi = Diet Then
    ThrowAway(Pepsi, Garbage)
    Else If HavePepsi = True
    Drink(Pepsi)
    End If[/vbcode]

  14. #14

    Thread Starter
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    actually I figured out how to do it nicely. I'll put the code in the page which holds the iframe. that way there is still no JS inside the iframe.
    Have I helped you? Please Rate my posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width