473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.
Jul 18 '08 #1
8 6726
..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
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
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
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
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
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
..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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: sonic_soul | last post by:
Hi, I was curious if I could make my webservice work with firefox client webservice functionality. (i got it to work with webservice.htc) I am able to get firefox to see my serverside web...
12
by: VK | last post by:
http://www.mozilla.com
3
by: VK | last post by:
A minor Firefox update was released (now 1.5.0.1) Full list of fixes can be found here: <http://www.mozilla.com/firefox/releases/1.5.0.1.html> Unfortunately the same update bans Venkman for...
4
by: Barry | last post by:
Hello. I am in the process of modifying some JavaScript code which refers to an external stylesheet, but unfortunately I have very little previous JavaScript experience. Currently the code has only...
1
by: Lui | last post by:
I was wondering if anyone knew if Microsoft had released or are planning to update the <browserCapsfor .Net 1.1 to support other browsers like IE 7 and Firefox 2 etc...
2
by: Jeff | last post by:
I've now searched the web for about 2+ hours and have found dozens of solutions, but none work. All information seems outdated and won't apply to Firefox 2.0. I'm trying to create the equivalent...
6
by: plenty900 | last post by:
Hi folks, I've altered the PHP underlying a website to support a few languages other than English, but the Firefox version that I'm using is of course the English-language one. When I set the...
2
by: g1r2a3 | last post by:
Hello: The following script // ======================================= // do not edit anything below this line // ======================================= var t var j = 0
29
Frinavale
by: Frinavale | last post by:
I have 2 FireFox (version 2) browser windows opened. One is the child of the other. When the user is finished with the child window, a method in the parent window is called to refresh a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.