Click to See Complete Forum and Search --> : ie & firefox issues


gingar
09-16-2008, 11:52 PM
I've got this site that displays a list of properties from database using php.

Each property has got an 'info' button that pops up a window, that displays the property's info, also retrieved from database using php.

Here's the problem, using IE 7, when the listing page is still loading, i click the 'info' button for a property that has already been loaded, the window pops up and gives me an error page! says no internet connection/problem displaying page. Only when i click on the 'info' after the listing page has completed loading, does the 'info' window load.

However, when I do the exact same thing, using Firefox, the 'info' window loads just fine, even when the listing page hasn't completely finished loading!

Any thoughts on this one?

sajan
09-17-2008, 03:02 AM
Its better if you put your code here. So thats its easy to find out the problem.

gingar
09-19-2008, 12:58 AM
this is the code that calls the pop up window.
<a onclick="NewWindow('product_infonew.php?products_id=5676&type=&ac=2gvs0ewjeuatis2006hoqgf', 'width=500,height=400')" style="cursor: pointer;"><img src="../images/small_view.gif" width="49" height="15" border=0 alt=""></a>

this is the code in the popup window.. i removed the display code..

<?php

ob_start("ob_gzhandler");
require('inc_database.php');
require('inc_settings.php');
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="functions.js"></script>
<script language="javascript"><!--
function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=550,height=500,screenX=150,screenY=150,top=150,left=150')
}
//--></script>

</head>
<body onload="this.focus();">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" valign="top" align="center" bgcolor="#ffffff">
<?
$product_info_query = "select * from products where products_id = '123'";

$rs = mysql_query($product_info_query);
$product_info = mysql_fetch_array($rs);
$numrows = mysql_num_rows($rs);

$to_replace = array('\\', '\'', '\"', '/');
$country = str_replace($to_replace, "-", $product_info['fldNameCountry']);
$city = str_replace($to_replace, "-", $product_info['fldNameCity']);

if ($numrows < 1) {
echo 'none found';
} else {

mysql_query("update products_description set products_viewed = products_viewed+1 where products_id = '" . (int)$_GET['products_id'] . "'");
//display record info
}
?>
</td>
</tr>
</table>

sajan
09-19-2008, 04:44 AM
I can't find NewWindow function. So it may be due to NewWindow function