Sorry: -
http://www.java.com/js/deployJava.txt
And did I leave the obvious drawbacks of document.write and the stinking
peasants in c.l.j.p who can't comprehend the need for run-time discovery
and injection of Applets.
You all make me sick!
Not you Arne
Oh now I remember this is A grade Javscript shit courtesy of Oracle :-(
//support native DT plugin?
allowPlugin: function() {
this.getBrowser();
// Safari and Opera browsers find the plugin but it
// doesn't work, so until we can get it to work - don't use it.
var ret = ('Safari' != this.browserName2 &&
'Opera' != this.browserName2);
return ret;
},
AND
getBrowser: function() {
if (this.browserName == null) {
var browser = navigator.userAgent.toLowerCase();
log('[getBrowser()] navigator.userAgent.toLowerCase() -> '
+ browser);
// order is important here. Safari userAgent contains mozilla,
// and Chrome userAgent contains both mozilla and safari.
if ((browser.indexOf('msie') != -1) &&
(browser.indexOf('opera') == -1)) {
this.browserName = 'MSIE';
this.browserName2 = 'MSIE';
} else if (browser.indexOf('iphone') != -1) {
// this included both iPhone and iPad
this.browserName = 'Netscape Family';
this.browserName2 = 'iPhone';
} else if ((browser.indexOf('firefox') != -1) &&
(browser.indexOf('opera') == -1)) {
this.browserName = 'Netscape Family';
this.browserName2 = 'Firefox';
} else if (browser.indexOf('chrome') != -1) {
this.browserName = 'Netscape Family';
this.browserName2 = 'Chrome';
} else if (browser.indexOf('safari') != -1) {
this.browserName = 'Netscape Family';
this.browserName2 = 'Safari';
} else if ((browser.indexOf('mozilla') != -1) &&
(browser.indexOf('opera') == -1)) {
this.browserName = 'Netscape Family';
this.browserName2 = 'Other';
} else if (browser.indexOf('opera') != -1) {
this.browserName = 'Netscape Family';
this.browserName2 = 'Opera';
} else {
this.browserName = '?';
this.browserName2 = 'unknown';
}
log('[getBrowser()] Detected browser name:'+ this.browserName +
', ' + this.browserName2);
}
return this.browserName;
},
Yeah skip off to JavaOne and get your jollies on lambdas while your
company pays for your legacy skills.
But where oh where is that street fighting Jew that landed on Ellis
island and laid waste to DEC and HP? For **** sake Larry please throw us
a bone???
Cheers Richard Maher