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 9 of 9
  1. #1
    Regular Coder goughy000's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    415
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ie7 meta refresh

    ok so i have this:

    Code:
    <meta http-equiv="refresh" content="7;url='http://example.com/web/launch/message.php?remote=12&simple=1#bottom'" />
    firefox refreshes fine and goes to the #bottom bookmark

    ie7 dosnt refresh at all

    if i get rid of the #bottom then they both refresh but not to the bookmark which is what i want

    thanx
    PHP Freelancing!
    ByteForums!
    Scriptlance.comNeed a job done quick? post it on scriptlance! OR! your a programmer? sign up and get paid for these jobs!

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Use a javascript timed redirect instead, or something at the server level using PHP, ASP, htaccess, IIS etc...

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I agree with using the server side redirect. Don't do it in javascript however the syntax for your meta refresh is incorrect
    Code:
    <meta http-equiv="refresh" content="7;url=http://example.com/web/launch/message.php?remote=12&simple=1#bottom" />
    There should be no single quotes around the url value.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Regular Coder goughy000's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    415
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i get the same results without the quotes (i tried it that way first)

    and i want them to see the page for the 7 seconds though and a server side would give me an instant redirect

    its an instant messenger, i have an ajax version that works fine but i want this mode too which uses simple html and iframes for browsers with restricted javascript access
    PHP Freelancing!
    ByteForums!
    Scriptlance.comNeed a job done quick? post it on scriptlance! OR! your a programmer? sign up and get paid for these jobs!

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Not sure where you got the idea of a redirect on the server side redirects the user instantly. PHP does have the ability to refresh the page in a set amount of time
    PHP Code:
    header('refresh: 7; url=web/launch/message.php?remote=12&simple=1#bottom'); 
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    Regular Coder goughy000's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    415
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you know what, i've been coding php for several years now and never used that =D

    i've used header but i've only ever used it for

    PHP Code:
    header("Location: /newurl/somepage"); 
    and for error messages such as making fake 404 pages


    EDIT

    tried your header();

    firefox all good
    ie7 dosnt refresh
    Last edited by goughy000; 02-01-2007 at 08:33 PM. Reason: see post
    PHP Freelancing!
    ByteForums!
    Scriptlance.comNeed a job done quick? post it on scriptlance! OR! your a programmer? sign up and get paid for these jobs!

  • #7
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello goughy000,
    This has been redirecting from an old URL for me for years. Works in everything.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>name</title>
    <meta http-equiv="refresh" content="0;URL=http://www.yourURL.html">
    </head>
    <body>
     <p>Click <a href="http://www.yourURL.html">here</a> to goto the main page
      manually.
    </body>
    </html>
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #8
    Regular Coder goughy000's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    415
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Hello goughy000,
    This has been redirecting from an old URL for me for years. Works in everything.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>name</title>
    <meta http-equiv="refresh" content="0;URL=http://www.yourURL.html">
    </head>
    <body>
     <p>Click <a href="http://www.yourURL.html">here</a> to goto the main page
      manually.
    </body>
    </html>
    if you read the thread properly you would have noticed that this is not the problem, i only get a problem when refreshing to a page with a bookmark.

    (pageurl#bookmark)


    i've got round it like this:

    meta refresh in html without the bookmark
    javascript to go to bookmark

    works good enough for me

    Thanx for everyones suggestions
    Last edited by goughy000; 02-04-2007 at 08:12 PM. Reason: .
    PHP Freelancing!
    ByteForums!
    Scriptlance.comNeed a job done quick? post it on scriptlance! OR! your a programmer? sign up and get paid for these jobs!

  • #9
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Hmm I just tested this and it works fine without the use of javascript in IE7.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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