lambro Posted January 25, 2005 Posted January 25, 2005 I am trying to make a pop up window in javascript on my product catagory pages. I want to take the heading image, and use a pop up window to show a larger version. <td align="right"><a href="java script:popupWindow('<?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?>')"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></a></td> Whats wrong with the code above??? I have the javascript in place <head> blah blah </head> but it does not want to work! Sorry if this is in the wrong place ..................
dwatson Posted January 30, 2005 Posted January 30, 2005 Sounds like it may be a mistake in the function that you are calling. Take a look (at B&N Cafe if you don't want to buy) JavaScript For the World Wide Web, Visual Quickstart Guide starting on page 112. It has a good chapter on this subject. Also, you might type something like Javascript New Window into Google, get some code samples, and work through all your Javascript code very carefully. I'm pretty rusty in Javascript, so do not have a faster answer for you, but this is the approach I would take. Thanks, David Watson
dwatson Posted January 30, 2005 Posted January 30, 2005 Also, when you request the page in the browser, look at "View Source" and see if the PHP is putting in what you expect with that echo. Thanks, David Watson
Recommended Posts
Archived
This topic is now archived and is closed to further replies.