<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ProofBuddy &#187; paypal</title>
	<atom:link href="http://www.proofbuddy.com/tag/paypal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.proofbuddy.com</link>
	<description></description>
	<lastBuildDate>Wed, 09 Jun 2010 01:34:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PayPal in a new window - Plugin</title>
		<link>http://www.proofbuddy.com/2009/07/13/paypal-in-a-new-window-plugin/</link>
		<comments>http://www.proofbuddy.com/2009/07/13/paypal-in-a-new-window-plugin/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 07:30:09 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.proofbuddy.com/?p=167</guid>
		<description><![CDATA[Changes the PayPal button so that it opens into a new window.&#160; This is needed when your ProofBuddy site is inside a frameset, although you can use it any time you want the PayPal in a new window.
]]></description>
			<content:encoded><![CDATA[<p>Changes the PayPal button so that it opens into a new window.&nbsp; This is needed when your ProofBuddy site is inside a frameset, although you can use it any time you want the PayPal in a new window.</p>
Note: There is a file embedded within this post, please visit this post to download the file.
]]></content:encoded>
			<wfw:commentRss>http://www.proofbuddy.com/2009/07/13/paypal-in-a-new-window-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opening PayPal in a new window</title>
		<link>http://www.proofbuddy.com/2008/05/12/opening-paypal-in-a-new-window/</link>
		<comments>http://www.proofbuddy.com/2008/05/12/opening-paypal-in-a-new-window/#comments</comments>
		<pubDate>Mon, 12 May 2008 23:35:47 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Development Blog]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://www.proofbuddy.com/?p=123</guid>
		<description><![CDATA[A couple of users have asked how to have the PayPal button open a new window instead of opening in the same one.&#160; It's fairly easy with a little bit of JavaScript.
Open the thanks.tpl file from whatever theme you're using.&#160; Look for a line with &#60;!--paypalbutton--&#62; in it.&#160; Below that line add the following.
&#160;
&#60;script type=&#34;text/javascript&#34;&#62;
for [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of users have asked how to have the PayPal button open a new window instead of opening in the same one.&nbsp; It's fairly easy with a little bit of JavaScript.</p>
<p>Open the thanks.tpl file from whatever theme you're using.&nbsp; Look for a line with &lt;!--paypalbutton--&gt; in it.&nbsp; Below that line add the following.</p>
<p>&nbsp;</p>
<div class="code_example">&lt;script type=&quot;text/javascript&quot;&gt;<br />
for (var i=0; i&lt;document.forms.length; i++)<br />
&nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp; if (document.forms[i].action.match(/paypal\.com/))<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; document.forms[i].target = &quot;_blank&quot;; <br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br />
&nbsp;&nbsp;&nbsp; } <br />
&lt;/script&gt;</div>
<p>&nbsp;</p>
<p>What this does is loop through any forms (the PayPal link is an HTML form with several hidden fields and one graphic submit button) on the page and if they are submitting to paypal.com the target is changed to _blank which makes the link open a new page.&nbsp; Any other forms (search boxes, email subscription fields, etc) will not be affected.</p>
<h3>Why?</h3>
<p>So, why do you need this?&nbsp; The user that first asked was running ProofBuddy inside a frameset on their site.&nbsp; For some reason PayPal has issues with this and throws a very nondescript error when you try to access from a framed page.&nbsp; She needed a way to break out of the frameset.</p>
<p>Some people also just like the idea of opening PayPal in a separate window so that their site is still open.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.proofbuddy.com/2008/05/12/opening-paypal-in-a-new-window/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
