<?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; javascript</title>
	<atom:link href="http://www.proofbuddy.com/tag/javascript/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>Sales Chart plugin</title>
		<link>http://www.proofbuddy.com/2009/08/07/sales-chart-plugin/</link>
		<comments>http://www.proofbuddy.com/2009/08/07/sales-chart-plugin/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 00:31:16 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Sales Chart]]></category>

		<guid isPermaLink="false">http://www.proofbuddy.com/?p=259</guid>
		<description><![CDATA[Just a teaser for now.&#160; This is a plugin we're writing to test the internals of the plugin system and make sure it's working like it's supposed to.&#160; So for now, this plugin isn't available.&#160; But it will be soon; most likely shortly after beta 9 is released.&#160;
The Sales Chart plugin adds a menu to [...]]]></description>
			<content:encoded><![CDATA[<p>Just a teaser for now.&nbsp; This is a plugin we're writing to test the internals of the plugin system and make sure it's working like it's supposed to.&nbsp; So for now, this plugin isn't available.&nbsp; But it will be soon; most likely shortly after beta 9 is released.&nbsp;</p>
<p>The Sales Chart plugin adds a menu to your dashboard that lets you view a line chart of your sales for the current week, month, and year; the previous week, month, and year; and all time.&nbsp; This gives you a quick glance into how well your sales are doing.</p>
<p>Since words don't really work to explain it though, here are a couple of screen shots.</p>
<p><img width="500" height="342" src="http://www.proofbuddy.com/wp-content/uploads/image/posts/salesChartThisWeek.png" alt="" /></p>
<p><strong>This Week</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img width="500" height="343" src="http://www.proofbuddy.com/wp-content/uploads/image/posts/salesChartThisYear.png" alt="" /></p>
<p><strong>This Year</strong></p>
<p>&nbsp;</p>
<p><strong><img width="500" height="403" alt="" src="http://www.proofbuddy.com/wp-content/uploads/image/posts/salesChartFullDashboard.png" /></strong></p>
<p><strong>The dashboard with this plugin enabled</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.proofbuddy.com/2009/08/07/sales-chart-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>
