Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Very quick question about "click to enlarge" photo


catscreations

Recommended Posts

Posted

Ok, for some reason, all of a sudden, when I click on "click to enlarge" on one of my store inventory items pictures, nothing happens. No pop up opens (not a pop up blocker issue). Just nothing. I've tried right-clicking and "open link in new window", a new window opens but it's just the usual "This page cannot be displayed" error. For example the link in the address bar when I do this is:

 

java script:popupWindow('http://catscreationsandcrafts.com/catalog/popup_image.php?pID=255')
with the error message "This page cannot be displayed".

 

Now I don't use a thumbnailer contribution or anyting, so this is just the regular install that comes with OSC.

 

It worked yesterday....*sigh* but not today!

 

What's going on? Can you PLEASE help me?

Posted

This is what I see from the html source:

 

<a href="javascript:;" onClick="ShowPopup('http://www.catscreationsandcrafts.com/catalog/images/pillow2.jpg','popup','resizable=yes,width=800,height=600');">
<img src="http://catscreationsandcrafts.com/catalog/images/pillow2.jpg" width="100" height="100" border="1"></a>

 

So its incorrect. There is an extra semi-colon after the javascript ?? So check what mods you've made in the catalog\products_info.php file Also the jscript is different than the one used by osc.

  • 1 month later...
Posted
This is what I see from the html source:

 

<a href="javascript:;" onClick="ShowPopup('http://www.catscreationsandcrafts.com/catalog/images/pillow2.jpg','popup','resizable=yes,width=800,height=600');">
<img src="http://catscreationsandcrafts.com/catalog/images/pillow2.jpg" width="100" height="100" border="1"></a>

 

So its incorrect. There is an extra semi-colon after the javascript ?? So check what mods you've made in the catalog\products_info.php file Also the jscript is different than the one used by osc.

 

Can you see anything wrong in the code below that would prevent popups of additional images:

 

*/

 

require('includes/application_top.php');

 

$navigation->remove_current_page();

 

$products_query = tep_db_query("SELECT images_description, popup_images FROM " . TABLE_ADDITIONAL_IMAGES . " WHERE additional_images_id = '" . $HTTP_GET_VARS['imagesID'] . "'");

$products_values = tep_db_fetch_array($products_query);

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<title><?php echo $products_values['images_description']; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<script language="javascript"><!--

var i=0;

function resize() {

if (navigator.appName == 'Netscape') i=40;

if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);

self.focus();

}

//--></script>

</head>

<body onload="resize();">

<?php echo tep_image(DIR_WS_IMAGES . $products_values['popup_images'], $products_values['images_description'], POPUP_IMAGE_WIDTH, POPUP_IMAGE_HEIGHT); ?>

</body>

</html>

<?php require('includes/application_bottom.php'); ?>

 

 

Thanks,

Elaine

"There are only 10 types of people in this world: those who understand binary, and those who don't. "

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...