OK, I have tryed this script using IE 6.0 and Mozilla 1.3a and Mozilla laods the java popup window and loads only one page out of two... the popup window is using frames...
here is the code for the top frae which is not laoding in mozilla but is in IE
<html>
<body>
<?
include('cfg.php');
$timestamp = date("F j, Y, g:i a");
$gettime = date("g:i a");
$hour = date("g");
$min = date("i");
$ampm = date("a");
$connect = mysql_connect($hostname, $user_name, $user_pass) or
die ("<b><center>".mysql_errno().": ".mysql_error()."</b></center>\n");
$db = mysql_select_db($database, $connect) or
die ("<b><center>".mysql_errno().": ".mysql_error()."</b></center>\n");
$testit = "Derrick";
$sql2 = "SELECT * FROM wait WHERE WUser = '$testit'";
$results = mysql_query($sql2, $connect);
if (mysql_num_rows($results) == 0) {
$sql = "INSERT INTO wait SET
WDate = '".$timestamp."',
WTime = '".$gettime."',
WTimeout = '".$hour.":".($min + 5)." ".$ampm."',
WUser = '".$testit."'";
$sql_result = mysql_query($sql, $connect) or
die ("<b><center>".mysql_errno().": ".mysql_error()."</b></center>\n");
}
while ($row = mysql_fetch_array($results)){
$timeout = $row["WTimeout"];
$timein = $row["WTime"];
$green_lite = $row["WOk"];
}
if ($gettime == $timeout) {
// Delete Record
mysql_query("DELETE FROM wait WHERE WUser='".$testit."'");
// After time out of 5 mins then show the busy page
echo "<meta http-equiv=\"refresh\" content=\"0;url=busy.php\">";
return;
}
if ($green_lite == "ok") {
// If Tech Connects call then goto chat page
echo "<meta http-equiv=\"refresh\" content=\"0;url=1.php\">";
return;
} else {
// Show Wait page
echo "<meta http-equiv=\"refresh\" content=\"0;url=wait.php\">";
}
mysql_close($connect);
?>
</body>
</html>
any clue??