sneddo
08-14-2008, 08:13 AM
Hay all,
I had a search around the forum and couldn't find any information on this. I then turned to Google and found a way of telling what version of Firefox is being used.
This is what I am using to detect the version:
if(navigator.userAgent.match("rv:1\.9")) {
Ext.isFX3 = true;
Ext.isFX2 = false;
Ext.isFX15 = false;
Ext.isFX3Plus = false;
} else if(navigator.userAgent.match("rv:1\.8\.1")) {
Ext.isFX3 = false;
Ext.isFX2 = true;
Ext.isFX15 = false;
Ext.isFX3Plus = false;
} else if(navigator.userAgent.match("rv:1\.8")) {
Ext.isFX3 = false;
Ext.isFX2 = false;
Ext.isFX15 = true;
Ext.isFX3Plus = false;
} else {
Ext.isFX3 = false;
Ext.isFX2 = false;
Ext.isFX15 = false;
Ext.isFX3Plus = true;
}
Let me know what you think, If you can see any problems with it please let me know, have tested on firefox 2.0.0.1.6 and 3.0.1 and it seems to work well.
Regards
David
I had a search around the forum and couldn't find any information on this. I then turned to Google and found a way of telling what version of Firefox is being used.
This is what I am using to detect the version:
if(navigator.userAgent.match("rv:1\.9")) {
Ext.isFX3 = true;
Ext.isFX2 = false;
Ext.isFX15 = false;
Ext.isFX3Plus = false;
} else if(navigator.userAgent.match("rv:1\.8\.1")) {
Ext.isFX3 = false;
Ext.isFX2 = true;
Ext.isFX15 = false;
Ext.isFX3Plus = false;
} else if(navigator.userAgent.match("rv:1\.8")) {
Ext.isFX3 = false;
Ext.isFX2 = false;
Ext.isFX15 = true;
Ext.isFX3Plus = false;
} else {
Ext.isFX3 = false;
Ext.isFX2 = false;
Ext.isFX15 = false;
Ext.isFX3Plus = true;
}
Let me know what you think, If you can see any problems with it please let me know, have tested on firefox 2.0.0.1.6 and 3.0.1 and it seems to work well.
Regards
David