Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs
In directory usw-pr-cvs1:/tmp/cvs-serv24919/chat/lib/index_libs
Modified Files:
main_index.lib.php3
Log Message:
Improved detection for full DOM support
Index: main_index.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/index_libs/main_index.lib.php3,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** main_index.lib.php3 2001/11/29 22:00:56 1.42
--- main_index.lib.php3 2001/11/29 23:01:17 1.43
***************
*** 629,636 ****
var jsUrlArgSeparator = '<?php echo(($GLOBALS['pmcQueryArgSeparator'] == '&') ? '&' : $GLOBALS['pmcQueryArgSeparator']); ?>';
! var jsIsDOM = (typeof(document.getElementsByTagName) != 'undefined') ? 1 : 0;
! var jsIsIE4 = ((typeof(document.all) != 'undefined') && (parseInt(navigator.appVersion) >= 4)) ? 1 : 0;
var jsIsNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0;
var jsWhichVersion = (jsIsDOM ||jsIsIE4 || jsIsNS4) ? 'high' : 'low';
var jsIsJs11 = (typeof(window.focus) != 'undefined');
--- 629,646 ----
var jsUrlArgSeparator = '<?php echo(($GLOBALS['pmcQueryArgSeparator'] == '&') ? '&' : $GLOBALS['pmcQueryArgSeparator']); ?>';
! var jsIsDOM = (typeof(document.getElementsByTagName) != 'undefined' && typeof(document.createElement) != 'undefined') ? 1 : 0;
! var jsIsIE4 = ((typeof(document.all) != 'undefined') && (parseInt(navigator.appVersion) >= 4) && !typeof(window.opera)) ? 1 : 0;
var jsIsNS4 = (typeof(document.layers) != 'undefined') ? 1 : 0;
var jsWhichVersion = (jsIsDOM ||jsIsIE4 || jsIsNS4) ? 'high' : 'low';
+ // Uggly fix for Konqueror that is half DOM compliant
+ if (jsWhichVersion == 'high' && typeof(navigator.userAgent) != 'undefined')
+ {
+ var browserName = ' ' + navigator.userAgent.toLowerCase();
+ if (browserName.indexOf('konqueror') > 0)
+ {
+ jsIsDOM = 0;
+ jsWhichVersion = 'low';
+ }
+ }
var jsIsJs11 = (typeof(window.focus) != 'undefined');
|