Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: FireFox Redirect

  1. #1
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation FireFox Redirect

    I was wondering if anyone had the code to redirect a firefox user to a specific place without it displaying a warning they will be redirected..so i pretty much want them to go to my page and then get redirected to my other page automatically without them getting a warning. Does anyone have this code if its possible? plz help!!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Just Firefox, or any browser other than IE?
    For just any other browser, you can do:
    Code:
    <!-- [if !IE]--><meta http-equiv="refresh" content="0;other-page.htm"/><!--[endif]-->
    By the way, I advise making your Firefox page the default, not the IE page. This is because Firefox is a more standards-compliant browser than IE, so if something goes wrong and a user of another browser gets stuck on the default page, it'll look better. You would do this like so:
    Code:
    <!-- [if IE]><meta http-equiv="refresh" content="0;ie-page.htm"/><![endif]-->
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yea see what i have i have it to redirect with IE so i can just insert that code the very first one u posted plus my IE redirect? and then it will redirect IE and all others like firefox and opera and stuff like that? correct me if im wrong

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You:re right, except where you say " it will redirect IE and all others". It won:t redirect IE. That:s the point.

    P.S. sorry for the funky punctuation, I:m using a LiveCD that:s decided I have a Japanese keyboard layout.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,991
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by Twey
    Just Firefox, or any browser other than IE?
    For just any other browser, you can do:
    Code:
    <!-- [if !IE]--><meta http-equiv="refresh" content="0;other-page.htm"/><!--[endif]-->
    The if/endif statement above isn't working here. This conditional comment can be used to screen in IE:

    <!--[if IE]>
    whatever
    <![endif]-->

    But, because it is IE proprietary, the reverse is not true, ex:

    <!--[if !IE]>
    whatever
    <![endif]-->

    because other browsers have no idea what you are talking about. See:

    http://www.quirksmode.org/css/condcom.html

    for proper usage and syntax of this 'feature'. I've found that exact syntax including spaces used/omitted is important.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I'm sorry, take the double-dashes out of those tags. It should work then. It won't, however, be valid HTML, if you are worried about this.

    What I was attempting to use here, John, was the "downlevel-revealed conditional comment" (all browsers but IE being arrogantly classed as "downlevel browsers"). See http://msdn.microsoft.com/workshop/a...omment_ovw.asp for further info.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    May 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i was trying to figure out after reading this how i would do the same thing for opera and safari?
    myself im trying to create a meta refresh for everything except firefox..
    this topic was verry helpful so far..

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,991
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    There is no way to single out/exclude FF on the basis of HTML alone and the browser sniffing involved could be tricky - for example, what about Netscape 6+ which often acts just like FF? In any case, you couldn't do it with just a meta refresh tag and some comment tags. You could use javascript, but users with javascript disabled wouldn't necessarily get what you are intending unless you also had a separate 'path' for them to follow.

    I suspect that the reason you want to 'avoid' FF has to do with issues that might be better solved in a different way. What exactly is the trouble with FF?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,363
    Thanks
    31
    Thanked 140 Times in 135 Posts
    Blog Entries
    32

    Default

    Quote Originally Posted by Twey View Post
    It won't, however, be valid HTML, if you are worried about this.
    Twey, what do you mean? The following is valid HTML 4.01 Strict
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    
    <!--[if IE]>
    <meta http-equiv="refresh" content="0;other-page.htm"/>
    <![endif]-->
    
    <!--[if !IE]>
    <meta http-equiv="refresh" content="0;other-page.htm"/>
    <![endif]-->
    
    </head>
    
    <body>
    <p>Content</p>
    </body>
    
    </html>
    ---
    Arie.

  10. #10
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by molendijk View Post
    Twey, what do you mean? The following is valid HTML 4.01 Strict
    Quote Originally Posted by Twey View Post
    I'm sorry, take the double-dashes out of those tags. It should work then. It won't, however, be valid HTML, if you are worried about this.
    I think that's what he meant, anyway.

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
  •