<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Rey Nacho Lives</title>
	<link>http://jake.cfwebtools.com</link>
	<description>Jake Churchill on ColdFusion, FarCry, CSS, and much more...</description>
	<pubDate>Tue, 08 Apr 2008 19:23:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>ColdFusion Implementation of Virtual Merchant</title>
		<link>http://jake.cfwebtools.com/2008/04/08/coldfusion-integration-of-virtual-merchant/</link>
		<comments>http://jake.cfwebtools.com/2008/04/08/coldfusion-integration-of-virtual-merchant/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 19:19:00 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[ColdFusion]]></category>

		<guid isPermaLink="false">http://jake.cfwebtools.com/2008/04/08/coldfusion-integration-of-virtual-merchant/</guid>
		<description><![CDATA[CF Webtools works on plenty of e-commerce sites.  Some generate only a trivial amount of revenue and others generate millions every year.  The most common implementations we see and deal with are authorize.net and paypal.  Both have very standard APIs and a feature list that is continuously expanding.  Recently I was [...]]]></description>
			<content:encoded><![CDATA[<p>CF Webtools works on plenty of e-commerce sites.  Some generate only a trivial amount of revenue and others generate millions every year.  The most common implementations we see and deal with are authorize.net and paypal.  Both have very standard APIs and a feature list that is continuously expanding.  Recently I was given a project which required implementing Virtual Merchant into Site Director and Farcry.  It also required the ability to use multiple merchants through the same implementation in Farcry.  Here&#8217;s what I did&#8230;</p>
<p> <a href="http://jake.cfwebtools.com/2008/04/08/coldfusion-integration-of-virtual-merchant/#more-71" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/04/08/coldfusion-integration-of-virtual-merchant/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Javascript Popup with graceful fallback</title>
		<link>http://jake.cfwebtools.com/2008/03/26/javascript-popup-with-graceful-fallback/</link>
		<comments>http://jake.cfwebtools.com/2008/03/26/javascript-popup-with-graceful-fallback/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 18:41:11 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://jake.cfwebtools.com/2008/03/26/javascript-popup-with-graceful-fallback/</guid>
		<description><![CDATA[I&#8217;ve struggled with popups for some time now.  I&#8217;ve never really found a good way to handle popping up a new window when clicking a link.  Sure, there is the target=&#8221;_blank&#8221; method but I&#8217;ve heard that in XHTML1.0 that is not actually valid.  That tells me that browsers can still handle this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve struggled with popups for some time now.  I&#8217;ve never really found a good way to handle popping up a new window when clicking a link.  Sure, there is the target=&#8221;_blank&#8221; method but I&#8217;ve heard that in XHTML1.0 that is not actually valid.  That tells me that browsers can still handle this but might not sometime in the future (or it might end up being included in some kind of quirks rendering mode in the future).  A standard Javascript popup is another option but is too easily disabled.  </p>
<p>This method will actually do both by creating an event handler.  </p>
<p> <a href="http://jake.cfwebtools.com/2008/03/26/javascript-popup-with-graceful-fallback/#more-67" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/03/26/javascript-popup-with-graceful-fallback/feed/</wfw:commentRss>
		</item>
		<item>
		<title>dmFlash Technique</title>
		<link>http://jake.cfwebtools.com/2008/03/19/dmflash-technique/</link>
		<comments>http://jake.cfwebtools.com/2008/03/19/dmflash-technique/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 17:29:35 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[Farcry]]></category>

		<guid isPermaLink="false">http://jake.cfwebtools.com/2008/03/19/dmflash-technique/</guid>
		<description><![CDATA[I&#8217;ve had some requests that I blog a dmFlash technique that I use in both version 3 and verion 4 of Farcry.  This sounds much more glamourous than it actually is.  I really just use a container with a handpicked rule but here are the details you will need to use this for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had some requests that I blog a dmFlash technique that I use in both version 3 and verion 4 of Farcry.  This sounds much more glamourous than it actually is.  I really just use a container with a handpicked rule but here are the details you will need to use this for yourself:</p>
<p> <a href="http://jake.cfwebtools.com/2008/03/19/dmflash-technique/#more-64" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/03/19/dmflash-technique/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Custom contentObjectGet Widget</title>
		<link>http://jake.cfwebtools.com/2008/03/17/custom-contentobjectget-widget/</link>
		<comments>http://jake.cfwebtools.com/2008/03/17/custom-contentobjectget-widget/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 22:23:33 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[Farcry]]></category>

		<guid isPermaLink="false">http://jake.cfwebtools.com/2008/03/17/custom-contentobjectget-widget/</guid>
		<description><![CDATA[Something about Farcry has bothered me for a while.  It is difficult to link to content programatically, especially if you have a navigation node with multiple content items under it.  For example, I have an application that I was writing which contained a calendar and a registration piece.  Each was a separate [...]]]></description>
			<content:encoded><![CDATA[<p>Something about Farcry has bothered me for a while.  It is difficult to link to content programatically, especially if you have a navigation node with multiple content items under it.  For example, I have an application that I was writing which contained a calendar and a registration piece.  Each was a separate dmInclude under the same dmNavigation node.  So, how do I create a &#8220;Register Now&#8221; button from the calendar to the registration piece programmatically?  Sure, I could hard-code the objectID but that just wasn&#8217;t cutting it for this.  Sure, it would work, but would be easily broken.  If the registration piece was ever deleted and re-created, there would be a new UUID for it and the user would not be able to recover the functionality without editing code or the database record.  So, I came up with a better solution&#8230;</p>
<p> <a href="http://jake.cfwebtools.com/2008/03/17/custom-contentobjectget-widget/#more-62" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/03/17/custom-contentobjectget-widget/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MS SQL IF EXISTS Technique</title>
		<link>http://jake.cfwebtools.com/2008/03/13/ms-sql-if-exists-technique/</link>
		<comments>http://jake.cfwebtools.com/2008/03/13/ms-sql-if-exists-technique/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 14:18:27 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://jake.cfwebtools.com/2008/03/13/ms-sql-if-exists-technique/</guid>
		<description><![CDATA[I&#8217;ll be the first to admit that I&#8217;m not the greatest when it comes to database design, optimization, even query code when it comes right down to it.  Sure, I can do the standard CRUD things withough a problem but really digging into a database is not my cup of tea.  So, when [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be the first to admit that I&#8217;m not the greatest when it comes to database design, optimization, even query code when it comes right down to it.  Sure, I can do the standard CRUD things withough a problem but really digging into a database is not my cup of tea.  So, when I came up with something actually usable, I had to post it <img src='http://jake.cfwebtools.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  So, on with the shameless self-promotion&#8230;</p>
<p>So, I am using an IF EXISTS &#8230; ELSE block for an INSERT/UPDATE query and was having an issue with the message handler.  Yeah, I could have added some additional ColdFusion logic, but who wants to do that???  I thought, It&#8217;d be really great if the query would give me back the results of what action was actually taken.  So, Here&#8217;s the original query:</p>
<pre><code>&lt;cfquery name="addUpdate" datasource="#application.CaseInfoDsn#"&gt;
	IF EXISTS (		SELECT 	AreaCode
					FROM 	area_codes
					WHERE 	AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.originalAreaCode#"&gt;
			  		OR		AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.AreaCode#"&gt;	)
		BEGIN
			UPDATE 	area_codes
			SET		AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.AreaCode)#"&gt;,
					State_Region = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.State_Region)#"&gt;,
					Description = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.Description)#"&gt;
			WHERE 	AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.originalAreaCode#"&gt;
			OR		AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.AreaCode#"&gt;

		END
	ELSE
		BEGIN
			INSERT
			INTO 	area_codes
					(
						AreaCode,
						State_Region,
						Description
					)
			VALUES
					(
						&lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.AreaCode)#"&gt;,
						&lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.State_Region)#"&gt;,
						&lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.Description)#"&gt;
					)

		END
&lt;/cfquery&gt;</code></pre>
<p>And Here&#8217;s my addition:</p>
<pre><code>&lt;cfquery name="addUpdate" datasource="#application.CaseInfoDsn#"&gt;
	IF EXISTS (		SELECT 	AreaCode
					FROM 	area_codes
					WHERE 	AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.originalAreaCode#"&gt;
			  		OR		AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.AreaCode#"&gt;	)
		BEGIN
			UPDATE 	area_codes
			SET		AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.AreaCode)#"&gt;,
					State_Region = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.State_Region)#"&gt;,
					Description = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.Description)#"&gt;
			WHERE 	AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.originalAreaCode#"&gt;
			OR		AreaCode = &lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#form.AreaCode#"&gt;

			SELECT	TOP 1 'upd' AS actionTaken
			FROM	area_codes
		END
	ELSE
		BEGIN
			INSERT
			INTO 	area_codes
					(
						AreaCode,
						State_Region,
						Description
					)
			VALUES
					(
						&lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.AreaCode)#"&gt;,
						&lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.State_Region)#"&gt;,
						&lt;cfqueryparam cfsqltype="cf_sql_varchar" value="#trim(form.Description)#"&gt;
					)

			SELECT	TOP 1 'ins' AS actionTaken
			FROM	area_codes
		END
&lt;/cfquery&gt;</code></pre>
<p>After each action (Insert or Update) I select a random string with a random alias which I can then use for my message handler.  Hopefully someone else out there thinks this is cool because I sure do <img src='http://jake.cfwebtools.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/03/13/ms-sql-if-exists-technique/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Big Burger</title>
		<link>http://jake.cfwebtools.com/2008/02/29/big-burger/</link>
		<comments>http://jake.cfwebtools.com/2008/02/29/big-burger/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 00:15:50 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jakewp.cfwebtools.com/2008/02/29/big-burger/</guid>
		<description><![CDATA[I don&#8217;t know why but the voices inside my head that are supposed to tell me when to stop have stopped talking.  Now there&#8217;s nothing to stop me from going overboard.  
To illustrate this point, I give you exhibit A.  Exhibit A is a photograph from a recent fast food outing at [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know why but the voices inside my head that are supposed to tell me when to stop have stopped talking.  Now there&#8217;s nothing to stop me from going overboard.  </p>
<p>To illustrate this point, I give you exhibit A.  Exhibit A is a photograph from a recent fast food outing at Fuddruckers (that&#8217;s a burger joint if you don&#8217;t know).  They offer the normal burgers but also have buffalo burgers and ostrich burgers.  They also have burgers going up to a massive one pound!  </p>
<p>Yes, your initial thought is correct.  I had a one pound burger.  Not only that but I had an order of fries and a huge soda along with it.</p>
<table border="0">
<tr>
<td><b>One Pound Cheeseburger:</b></td>
<td>$8.00</td>
</tr>
<tr>
<td><b>Order of Fries:</b></td>
<td>$3.00</td>
</tr>
<tr>
<td><b>Large Soda:</b></td>
<td>$2.00</td>
</tr>
<tr>
<td><b>12 hours of regret:</b></td>
<td><b>PRICELESS!</b></td>
</tr>
</table>
<p>Just to give you an illustration of how big this burger was&#8230;  The bun was not a normal bun, it was a small loaf of bread.  It took 4 slices of cheese to cover it and 2 large pieces of lettuce.  </p>
<p><a href='http://jake.cfwebtools.com/wp-content/uploads/2008/02/bigburger.jpg' title='bigburger.jpg'>Big Burger</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/02/29/big-burger/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CFEclipse (no need to fear)</title>
		<link>http://jake.cfwebtools.com/2008/02/27/cfeclipse-no-need-to-fear/</link>
		<comments>http://jake.cfwebtools.com/2008/02/27/cfeclipse-no-need-to-fear/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 00:14:24 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[CFEclipse]]></category>

		<guid isPermaLink="false">http://jakewp.cfwebtools.com/2008/02/27/cfeclipse-no-need-to-fear/</guid>
		<description><![CDATA[A lot of people that I work with are stuck on Dreamweaver and Homesite for developing ColdFusion.  I can understand that since I started out using Homesite.  But, it always bugged me that they were not developing updates for it and I always like the biggest and the best.  
I don&#8217;t like [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of people that I work with are stuck on Dreamweaver and Homesite for developing ColdFusion.  I can understand that since I started out using Homesite.  But, it always bugged me that they were not developing updates for it and I always like the biggest and the best.  </p>
<p>I don&#8217;t like Dreamweaver because I feel like it is too bloated for coding.  It&#8217;s a great tool for design but I tend to like my editors kept pretty simple when I am coding.  That&#8217;s a topic for another post.  Wait, Mark Kruger beat me to it (<a href="http://www.coldfusionmuse.com/index.cfm/2008/1/9/Coldfusion.IDE.Debate" target="_blank">Read Here</a>).</p>
<p> <a href="http://jake.cfwebtools.com/2008/02/27/cfeclipse-no-need-to-fear/#more-55" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/02/27/cfeclipse-no-need-to-fear/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS Rounded Corners</title>
		<link>http://jake.cfwebtools.com/2008/02/13/css-rounded-corners/</link>
		<comments>http://jake.cfwebtools.com/2008/02/13/css-rounded-corners/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 00:09:30 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://jakewp.cfwebtools.com/2008/02/13/css-rounded-corners/</guid>
		<description><![CDATA[One thing that I&#8217;ve learned a lot about in the last year and a half is CSS.  Along with any other language, there is not one right way to do things in CSS.  But, there&#8217;s usually one way that will make your life in the future much easier.  The trick is finding [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that I&#8217;ve learned a lot about in the last year and a half is CSS.  Along with any other language, there is not <b>one</b> right way to do things in CSS.  But, there&#8217;s usually one way that will make your life in the future much easier.  The trick is finding it&#8230;</p>
<p> <a href="http://jake.cfwebtools.com/2008/02/13/css-rounded-corners/#more-54" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/02/13/css-rounded-corners/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Farcry Typeadmin pagination trick</title>
		<link>http://jake.cfwebtools.com/2008/02/05/farcry-typeadmin-pagination-trick/</link>
		<comments>http://jake.cfwebtools.com/2008/02/05/farcry-typeadmin-pagination-trick/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 00:08:52 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[Farcry]]></category>

		<guid isPermaLink="false">http://jakewp.cfwebtools.com/2008/02/05/farcry-typeadmin-pagination-trick/</guid>
		<description><![CDATA[I was searching through typeadmin for something unrelated to this post and found something interesting that I thought I&#8217;d share.  
It often annoys me that there are only 15 items displayed per page.  Show me a site that&#8217;s been live for more than a month and I&#8217;ll show you an image library with [...]]]></description>
			<content:encoded><![CDATA[<p>I was searching through typeadmin for something unrelated to this post and found something interesting that I thought I&#8217;d share.  </p>
<p>It often annoys me that there are only 15 items displayed per page.  Show me a site that&#8217;s been live for more than a month and I&#8217;ll show you an image library with <b>WAY</b> more than 15 items.  Usually there are more than 15 <b>pages</b>.</p>
<p>Typeadmin takes a couple of attributes that I was not aware of until today (numitems and numPageDisplay).  Here are their defaults:</p>
<p> <a href="http://jake.cfwebtools.com/2008/02/05/farcry-typeadmin-pagination-trick/#more-53" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/02/05/farcry-typeadmin-pagination-trick/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Delete Core Webtop Links</title>
		<link>http://jake.cfwebtools.com/2008/02/05/delete-core-webtop-links/</link>
		<comments>http://jake.cfwebtools.com/2008/02/05/delete-core-webtop-links/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 00:08:20 +0000</pubDate>
		<dc:creator>Jake Churchill</dc:creator>
		
		<category><![CDATA[Farcry]]></category>

		<guid isPermaLink="false">http://jakewp.cfwebtools.com/2008/02/05/delete-core-webtop-links/</guid>
		<description><![CDATA[I ran into a situation where I wanted to re-order an entire spot of the webtop.  So, how do you do that.  I know how to extend the webtop using customadmin.xml, can you get rid of things the same way?
The answer is yes, using the &#8220;mergetype&#8221; attribute.  Here&#8217;s how&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I ran into a situation where I wanted to re-order an entire spot of the webtop.  So, how do you do that.  I know how to extend the webtop using customadmin.xml, can you get rid of things the same way?</p>
<p>The answer is yes, using the &#8220;mergetype&#8221; attribute.  Here&#8217;s how&#8230;</p>
<p> <a href="http://jake.cfwebtools.com/2008/02/05/delete-core-webtop-links/#more-52" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jake.cfwebtools.com/2008/02/05/delete-core-webtop-links/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
