Google Answers Logo
View Question
 
Q: Creating a link in a new window in my converted Oscommerce shopping directory ( No Answer,   0 Comments )
Question  
Subject: Creating a link in a new window in my converted Oscommerce shopping directory
Category: Computers
Asked by: hartlepoolfc-ga
List Price: $4.00
Posted: 26 Nov 2006 17:04 PST
Expires: 26 Dec 2006 17:04 PST
Question ID: 785783
Does anyone know what code I need to add to the following for it to
open in a new window??

case 'PRODUCT_LIST_BUY_NOW':
$lc_align = 'center';
$lc_text = '<a href="' . tep_href_link(FILENAME_REDIRECT,
'action=url&goto=' . urlencode($listing['products_url'])) . '">' .
tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) .
'</a>&nbsp;';
break;


Should I insert "target="_blank" ?

Clarification of Question by hartlepoolfc-ga on 26 Nov 2006 17:10 PST
It may be a bit clearer if you see the original post on the OSC forums.

http://forums.oscommerce.com/index.php?s=de9851e56223e3e27b815deacdd27977&showtopic=104707&st=20

Request for Question Clarification by sublime1-ga on 26 Nov 2006 17:40 PST
hartlepoolfc...

Yes, I believe this will work:

$lc_align = 'center';
$lc_text = '<a href="' . tep_href_link(FILENAME_REDIRECT,
'action=url&goto=' . urlencode($listing['products_url'])) . '"
target="_BLANK">' .
tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) .
'</a>&nbsp;';
break;

Let me know...

sublime1-ga
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy