How can I get the firefox version?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • juande

    How can I get the firefox version?

    How can I get the firefox version?, with prior version 2.0 my site
    looks fine but with new version 3.0 my site changes and need to modify
    my scripts to works fine for all versions.
    Many thanks and regards.
  • Michael Fesser

    #2
    Re: How can I get the firefox version?

    ..oO(juande)
    >How can I get the firefox version?, with prior version 2.0 my site
    >looks fine but with new version 3.0 my site changes and need to modify
    >my scripts to works fine for all versions.
    And what about FF 4? 5? Other browsers?

    Browser sniffing is _never_ a solution. Instead you should figure out
    what's going wrong. It's most likely a problem in your code, not in the
    browser.

    Micha

    Comment

    • juande

      #3
      Re: How can I get the firefox version?

      On 18 jul, 10:05, Michael Fesser <neti...@gmx.de wrote:
      .oO(juande)
      >
      How can I get the firefox version?, with prior version 2.0 my site
      looks fine but with new version 3.0 my site changes and need to modify
      my scripts to works fine for all versions.
      >
      And what about FF 4? 5? Other browsers?
      >
      Browser sniffing is _never_ a solution. Instead you should figure out
      what's going wrong. It's most likely a problem in your code, not in the
      browser.
      >
      Micha
      I use window.open method and then window.resizeTo on body onload to
      resize the window according table clientHeight, but FF 3.0 shows an
      new url bar that doesn't exits in prior versions.
      Juande.

      Comment

      • Bart Van der Donck

        #4
        Re: How can I get the firefox version?

        On 18 jul, 11:03, juande <juande.marti.. .@gmail.comwrot e:
        On 18 jul, 10:05, Michael Fesser <neti...@gmx.de wrote:
        >
        .oO(juande)
        >
        >How can I get the firefox version?, with prior version 2.0 my site
        >looks fine but with new version 3.0 my site changes and need to modify
        >my scripts to works fine for all versions.
        >
        And what about FF 4? 5? Other browsers?
        >
        Browser sniffing is _never_ a solution. Instead you should figure out
        what's going wrong. It's most likely a problem in your code, not in the
        browser.
        >
        Micha
        >
        I use window.open method and then window.resizeTo on body onload to
        resize the window according table clientHeight, but FF 3.0 shows an
        new url bar that doesn't exits in prior versions.
        Juande.
        But surfers might also use the Google Toolbar, have their own
        preferences which buttons they want to use, use any of the FireFox
        extensions that affect those bars, have other plugins installed, etc.
        Different languages, versions, OS, system config etc can also easily
        affect the client's height. Do yourself a favour and don't use such
        mess :-)

        --
        Bart

        Comment

        • Gregor Kofler

          #5
          Re: How can I get the firefox version?

          juande meinte:
          I use window.open method and then window.resizeTo on body onload to
          resize the window according table clientHeight, but FF 3.0 shows an
          new url bar that doesn't exits in prior versions.
          Yes, that's the default behaviour of FF3 (and perhaps others to come).
          Just don't do any annoying window popups. I don't like popups at all,
          but I *hate(d)* popups I can't resize or modify freely.

          Gregor




          --
          http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
          http://web.gregorkofler.com ::: meine JS-Spielwiese
          http://www.image2d.com ::: Bildagentur für den alpinen Raum

          Comment

          • Stevo

            #6
            Re: How can I get the firefox version?

            juande wrote:
            I use window.open method and then window.resizeTo on body onload to
            resize the window according table clientHeight, but FF 3.0 shows an
            new url bar that doesn't exits in prior versions.
            Juande.
            Are you even sure that you know how to solve it ? I'd worry about
            finding a solution to your problem before figuring out how you'll handle
            the logic to decide if you're going to use it. You may well find that
            whatever you do in the new code, also works in all the old browsers too.
            Or in other words, you may have been doing it wrong all this time and
            the older browsers tolerated it, but the newer ones don't.

            It's not recommended here, but a commonly used approach is to look in
            the useragent string for something unique to the browser. For example:

            var u=navigator.use rAgent.toLowerC ase();
            var ff3=u.indexOf(" firefox/3")>-1;

            Comment

            • juande

              #7
              Re: How can I get the firefox version?

              On 18 jul, 11:18, Bart Van der Donck <b...@nijlen.co mwrote:
              On 18 jul, 11:03, juande <juande.marti.. .@gmail.comwrot e:
              >
              >
              >
              >
              >
              On 18 jul, 10:05, Michael Fesser <neti...@gmx.de wrote:
              >
              .oO(juande)
              >
              How can I get the firefox version?, with prior version 2.0 my site
              looks fine but with new version 3.0 my site changes and need to modify
              my scripts to works fine for all versions.
              >
              And what about FF 4? 5? Other browsers?
              >
              Browser sniffing is _never_ a solution. Instead you should figure out
              what's going wrong. It's most likely a problem in your code, not in the
              browser.
              >
              Micha
              >
              I use window.open method and then window.resizeTo on body onload to
              resize the window according table clientHeight, but FF 3.0 shows an
              new url bar that doesn't exits in prior versions.
              Juande.
              >
              But surfers might also use the Google Toolbar, have their own
              preferences which buttons they want to use, use any of the FireFox
              extensions that affect those bars, have other plugins installed, etc.
              Different languages, versions, OS, system config etc can also easily
              affect the client's height. Do yourself a favour and don't use such
              mess :-)
              >
              --
               Bart- Ocultar texto de la cita -
              >
              - Mostrar texto de la cita -
              I totally agree, but with window.open(URL , '', 'top=10, left=10,
              width=780, height=460, resizable=0, menubar=0, toolbar=0, location=0,
              scrollbars=0, status=no'), all toolbars, plugins, custom bars doesn't
              appears, only this new bar in FF3 and IE7.
              Regards.

              Comment

              • Michael Fesser

                #8
                Re: How can I get the firefox version?

                ..oO(juande)
                >I use window.open method and then window.resizeTo on body onload to
                >resize the window according table clientHeight, but FF 3.0 shows an
                >new url bar that doesn't exits in prior versions.
                You have to live with such differences.

                Many of these user-unfriendly modifications to JS-created windows won't
                work at all anymore in modern browsers. Even FF 2 had ways to prevent
                many of these annoyances, other browsers like Opera might always show
                such popups as normal tabs with all the default chrome and so on.

                You shouldn't mess with that, because finally the user and only the user
                decides how to view a website, never the author. There are things you
                simply can't control. Don't waste your time with these, but focus on
                usability, accessibility and useful content instead.

                Micha

                Comment

                • Thomas 'PointedEars' Lahn

                  #9
                  Re: How can I get the firefox version?

                  juande wrote:
                  I totally agree, but with window.open(URL , '', 'top=10, left=10,
                  width=780, height=460, resizable=0, menubar=0, toolbar=0, location=0,
                  scrollbars=0, status=no'),
                  The features string must not contain whitespace.
                  all toolbars, plugins, custom bars doesn't appears, only this new bar
                  in FF3 and IE7.
                  As discussed before(!), it is a security precaution, and you better hope it
                  cannot be circumvented.


                  PointedEars
                  --
                  Anyone who slaps a 'this page is best viewed with Browser X' label on
                  a Web page appears to be yearning for the bad old days, before the Web,
                  when you had very little chance of reading a document written on another
                  computer, another word processor, or another network. -- Tim Berners-Lee

                  Comment

                  Working...