When I view the page (chat.php) in IE 6.0 the following code is
utilized:
[PHP]
if ($_COOKIE['val_chat']) {
// OPEN UP A NEW WINDOW TO SHOW THE CHATROOM
ob_start();
require_once("$ABSOLUTE_MYCGISERVER_PATH/$PATH/chat_open_room.php");
$html .= ob_get_contents();
ob_end_clean();
}
[/PHP]
Following is "chat_open_room.php":
[PHP]
<?
/*--------------------------------------------------------------------------
File: CHAT_OPEN_ROOM.PHP
Created By: Phil Powell
Creation Date: 3/9/2004
Modified Date: 3/13/2004
Purpose: Create new window to house the actual chatroom
Dependencies: 1) ../chat.php
2) ../includes/chat_global_vars.php
Cookies: NONE
Sessions: NONE
Structure: Include file
---------------------------------------------------------------------------*/
?>
<script>
<!--
var ie = (document.all) ? true : false;
var ne = (document.all) ? false : true;
var options = 'width=650,height=420,toolbars=no,title=no,scrollb ars=auto,status=no';
options += ',resizable=no,menubar=no,location=no,directories= no';
if (ne) options += ',dependent=yes';
chat = window.open('<?= $CHAT_ROOM_SELF ?>', 'Chatroom', options);
//-->
</script>
<noscript>
<!-- ADD LINK FOR NON-JAVASCRIPT USERS TO VIEW CHATROOM SINCE IT WON'T
JUST POP UP -->
<a href="<?= $CHAT_ROOM_SELF ?>" target=_new>Open Chatroom</a>
</noscript>
[/PHP]
In Netscape 7.1 I have absolutely no problems whatsoever with this
code resulting HTML; in IE, the browsers lock up into a runaway
process and I have to destroy all IE browser instances to free
resources to fix it.
If I comment out this line in chat_open_room.php:
[PHP]//chat = window.open('<?= $CHAT_ROOM_SELF ?>', 'Chatroom',
options);[/PHP]
Then I can see the problem: None of "chat_open_room.php" was ever
required at all! For some reason, there is nothing there. In
Netscape, everything is there. I am almost believing that server-side
code has now become client-dependent, which is impossible, of course,
but what is going on??
Phil