473,320 Members | 1,910 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,320 software developers and data experts.

Code fails when viewed in IE 6.0 but works in Netscape 7.1???

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
Jul 17 '05 #1
0 1471

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: esrkq | last post by:
Hi, I am looking at a way to return IP related information of a visitor loading a web page and found the following snippet of code: if(navigator.javaEnabled() && (navigator.appName !=...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
9
by: gleverett | last post by:
I have been searching the 'Net, and I can't find the right solution here. I am writing some PHP pages that utilize some Javascript. The script works in Mozilla/Netscape, but fails in IE. I don't...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
13
by: sembiance | last post by:
Hi folks :) I've been working on a C/C++ Source Code search engine website for over a year now, and just thought I'd let you all know that I just put it live a few minutes ago. It searches 99...
21
by: Phil Powell | last post by:
<script type=\"text/javascript\"> <!-- var browserArray = new Array(\"Microsoft Internet Explorer\", \"Netscape\"); if (browserArray.in_array(navigator.appName, browserArray) &&...
5
by: bspittles | last post by:
Can anyone tell me why the following script doesn't work in Firefox 1.5 (not sure about other versions) when it works fine in IE6 and Netscapes 7.1? Almost as importantly ;) can ayone tell me how...
3
by: dotcom | last post by:
hello, i am sending whole javascript code(it is for freezing html header) it works fine eith IE but not firefox scroll bar does not come var divContent = null; var divHeaderRow = null; var...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.