mark
|
Posted: 09/17/2003, 2:23 PM |
|
How do I get my PayPal link to open in a new window?
In my database, I created a blob field with my PayPal html code. See below.
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@mydomain.com">
<input type="hidden" name="item_name" value="My Product">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="image" src="https://www.paypal.com/images/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
In CodeCharge, I created a Label Type field with HTML checked. Everything works fine but I want the PayPal page to open in a popup window.
I'm using CC2.0 with PHP as language.
Thanks much!
|
|
|
Headhunter
|
Posted: 09/17/2003, 2:55 PM |
|
Modify your link in the html code like this:
<a href="{paypal_link_Src}" target="_blank" onclick="if (window.open) {Console=window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=400'); return false;} else { return true;}">{paypal_link}</a>
http://www.dbweaver.com
|
|
|
mark
|
Posted: 09/17/2003, 3:25 PM |
|
I pasted my code from my original message to where you have paypal_link_Src and paypal_link in your code. I assume this is wrong because it didn't work. Please help.
|
|
|
|