By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,712 Members | 2,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,712 IT Pros & Developers. It's quick & easy.

How can I get the firefox version?

P: n/a
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.
Jul 18 '08 #1
Share this Question
Share on Google+
8 Replies


P: n/a
..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
Jul 18 '08 #2

P: n/a
On 18 jul, 10:05, Michael Fesser <neti...@gmx.dewrote:
.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.
Jul 18 '08 #3

P: n/a
On 18 jul, 11:03, juande <juande.marti...@gmail.comwrote:
On 18 jul, 10:05, Michael Fesser <neti...@gmx.dewrote:
.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
Jul 18 '08 #4

P: n/a
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
Jul 18 '08 #5

P: n/a
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.userAgent.toLowerCase();
var ff3=u.indexOf("firefox/3")>-1;
Jul 18 '08 #6

P: n/a
On 18 jul, 11:18, Bart Van der Donck <b...@nijlen.comwrote:
On 18 jul, 11:03, juande <juande.marti...@gmail.comwrote:


On 18 jul, 10:05, Michael Fesser <neti...@gmx.dewrote:
.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.
Jul 18 '08 #7

P: n/a
..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
Jul 18 '08 #8

P: n/a
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
Jul 18 '08 #9

This discussion thread is closed

Replies have been disabled for this discussion.