Is there any way of getting jump.php to open a new page when it executes so that my site remains open.
Kind regards
Stephen
Hi Stephen,
This is quite straight forward, and just requires the target='_BLANK' attribute added to each of the tags where the link contains the jump script.
For the prices table, in html/prices.php change line 11:
<td align='center'><a href='<?php print tapestry_buyURL($product); ?>' <?php print javascript_statusBar("go to ".$product["merchant"]); ?>><?php print translate("Visit Store"); ?></a></td>
to:
<td align='center'><a target='_BLANK' href='<?php print tapestry_buyURL($product); ?>' <?php print javascript_statusBar("go to ".$product["merchant"]); ?>><?php print translate("Visit Store"); ?></a></td>
...and in html/product.php change line 28:
<a href='<?php print tapestry_buyURL($priceProduct); ?>' <?php print javascript_statusBar(translate("go to")." ".$priceProduct["merchant"]); ?>><strong><?php print $priceProduct["merchant"]; ?></strong></a><br />
...to:
<a target='_BLANK' href='<?php print tapestry_buyURL($priceProduct); ?>' <?php print javascript_statusBar(translate("go to")." ".$priceProduct["merchant"]); ?>><strong><?php print $priceProduct["merchant"]; ?></strong></a><br />
Hope this helps! Cheers, David.
©2006-2025 IAAI Software | Contact Us | Privacy Policy
Hi Stephen,
This is quite straight forward, and just requires the target='_BLANK' attribute added to each of the tags where the link contains the jump script.
For the prices table, in html/prices.php change line 11:
<td align='center'><a href='<?php print tapestry_buyURL($product); ?>' <?php print javascript_statusBar("go to ".$product["merchant"]); ?>><?php print translate("Visit Store"); ?></a></td>
to:
<td align='center'><a target='_BLANK' href='<?php print tapestry_buyURL($product); ?>' <?php print javascript_statusBar("go to ".$product["merchant"]); ?>><?php print translate("Visit Store"); ?></a></td>
...and in html/product.php change line 28:
<a href='<?php print tapestry_buyURL($priceProduct); ?>' <?php print javascript_statusBar(translate("go to")." ".$priceProduct["merchant"]); ?>><strong><?php print $priceProduct["merchant"]; ?></strong></a><br />
...to:
<a target='_BLANK' href='<?php print tapestry_buyURL($priceProduct); ?>' <?php print javascript_statusBar(translate("go to")." ".$priceProduct["merchant"]); ?>><strong><?php print $priceProduct["merchant"]; ?></strong></a><br />
Hope this helps!
Cheers,
David.