mikek Posted June 29, 2003 Posted June 29, 2003 I'm using Image Resize 1.3 which does what it says on the can. Im having a few problems with it especially when it comes to showing the thumbnail on the product_info page.. this is the snippet of code from product_info.php <!--snip--> <td align="center" class="infoBoxb"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $pro$ //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '">' . tep_image(DIR_WS_IMA$ </noscript> </td> <!--/snip--> heres the output from the page when image resize is turned off <!--snip--> <td align="center" class="infoBoxb"> <script language="javascript"><!-- document.write('<a href="java script:popupWindow('http://www.edsyn.co.uk/catalog/popup_image.php/pID/371')"><img src="images/DS017LQ.JPG" border="0" alt="Static-Safe Deluxe SOLDAPULLT" title=" Static-Safe Deluxe SOLDAPULLT " width="100" height="80" hspace="5" vspace="5"><br>Click to enlarge</a>'); //--></script> <noscript> <a href="http://www.edsyn.co.uk/catalog/images/DS017LQ.JPG"><img src="images/DS017LQ.JPG" border="0" alt="Static-Safe Deluxe SOLDAPULLT" title=" Static-Safe Deluxe SOLDAPULLT " width="100" height="80" hspace="5" vspace="5"><br>Click to enlarge</a></noscript> </td> <!--/snip--> heres the snippet from the same page when image-resize is enabled: <!--snip--> <td align="center" class="infoBoxb"> <script language="javascript"><!-- document.write(' <a href="java script:popupWindow('http://www.edsyn.co.uk/catalog/popup_image.php/pID/371')"><img src="images/DS017LQ-100x80.JPG" border="0" alt="Static-Safe Deluxe SOLDAPULLT" title=" Static-Safe Deluxe SOLDAPULLT " width="100" height="18" hspace="5" vspace="5"><br>Click to enlarge</a>'); //--></script> <noscript> <a href="http://www.edsyn.co.uk/catalog/images/DS017LQ.JPG"><img src="images/DS017LQ-100x80.JPG" border="0" alt="Static-Safe Deluxe SOLDAPULLT" title=" Static-Safe Deluxe SOLDAPULLT " width="100" height="18" hspace="5" vspace="5"><br>Click to enlarge</a></noscript> </td> <!--/snip--> can anyone figure out what is causing the huge gap after eg.. document.write(' <a ? this means that i get no thumbnail and no image to resize. before i rewrite the popup handler can anyone give me some suggestions or a remedy? cheers mikek Eagles may soar, but weasles don't get sucked into jet-engines
Guest Posted June 29, 2003 Posted June 29, 2003 not great at php, but I know the ? should be where the a is ?> is an end command there is no <a : except <a href=bla bla and <?php : is the start
mikek Posted June 30, 2003 Author Posted June 30, 2003 i dont think that i made my self clear enough in my last post... problem i have got is that when <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> is parsed by php and the resize image function i get <script language="javascript"><!-- document.write(' <a href="java script:popupWindow('http://www.edsyn.co.uk/catalog/popup_image.php/pID/371')"><img src="images/DS017LQ-100x80.JPG" border="0" alt="Static-Safe Deluxe SOLDAPULLT" title=" Static-Safe Deluxe SOLDAPULLT " width="100" height="18" hspace="5" vspace="5"><br>Click to enlarge</a>'); //--></script> the above code is functionally correct apart from the 2 lines of blank below the document write which is preventing the js function from, er, functioning.. *something* is causing the double line to be inserted. Thats what im trying to discover. Eagles may soar, but weasles don't get sucked into jet-engines
clickutopia Posted August 21, 2003 Posted August 21, 2003 Hi, Has anyone managed to solve this? I too get the same problem, and of course, a javascript error on the product_info pages. Thanks, Dale.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.