I have php 5 installed for now, but I’m finding that the javascript pop up window is no longer transferring the data to the pop up window. It is supposed to display a larger image than the thumbnail upon click. I am not sure if this broke in php5 or not, but I’m trying to repair some older sites.What happens is that the pop up window opens, but the data is not transferred to it. This is the code in the catalog page:
<p align="center">
<a href="#" o click="MM_openBrWindow('<?php echo "show_image.php?img={$row_viewall['pictures']}"; $img = $row_viewall['pictures'];?>','','toolbar=yes,scrollbars=yes,resizable=yes,width=550,height=500');return false">
<img src='http://yellow-diamonds.com/<?php echo $row_viewall['thumbnail']; ?>' alt="<?php echo $row_viewall['item_name']; ?>" border="0" /></a><br />
<span class="under"><?php echo $row_viewall['item']; ?></span>
Where pictures is the field for the larger image the thumbnail is what it says. The popup window code is below. Would appreciate if you can help me figure out what is no longer allowed. It used to work just fine.
<?php $id1 = basename($img, '.gif');
$id2 = basename($id1, '.jpg');
$iden = basename($id2, 'images/');
?>
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
function open_on_entrance(url,name)
{
popupWin = window.open('show_image.php','Enlarged_View', ' resizable, width=400,toolbar=0,height=450,left=100,top=100')
}
</script>
<title>Large View of <?php echo $iden; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body >
<div align="center">
<p>
Large View of Item no. <?php echo $iden; ?> </p>
<p><img src="<?php echo $img; ?>"><br>
<a href="javascript:window.close()" onMouseOver="window.status='Close Window';return true" onMouseOut="window.status='';return true"><em> Close
Window </em></a></p></div>
etc.