<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>ColdFusion Development Blog by Scott Bennett - JavaScript</title>
			<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm</link>
			<description>Scott Bennett - The ColdFusion Guy&apos;s Blog on ColdFusion development.</description>
			<language>en-us</language>
			<pubDate>Mon, 06 Sep 2010 17:05:09 -0400</pubDate>
			<lastBuildDate>Mon, 10 Nov 2008 03:30:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>Scott@ColdFusionGuy.com</managingEditor>
			<webMaster>Scott@ColdFusionGuy.com</webMaster>
			
			<item>
				<title>CFWindow scrollIntoView</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/11/10/CFWindow-scrollIntoView</link>
				<description>
				
				Leon asked:

&lt;div style=&quot;border:1px solid silver; background: #eeeeee; padding:5px;&quot;&gt;&lt;b&gt;&quot;I wondered if you know of a way to control the scroll position of the contents in a cfwindow? Do you know if there&apos;s some ext api function or property that can be used sort of like the JS scrollIntoView() type function, but applies to the ext window?&quot;&lt;/b&gt;&lt;/div&gt;

The solution to the problem can be seen in the cfWindowScrollIntoView() function I created below  [More]
				</description>
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 10 Nov 2008 03:30:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/11/10/CFWindow-scrollIntoView</guid>
				
			</item>
			
			<item>
				<title>CFGrid: Disable the Right Mouse Click Event</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/10/22/CFGrid-Disable-the-Right-Mouse-Click-Event</link>
				<description>
				
				Willis asked:

&lt;div style=&quot;border:1px solid silver; background: #eeeeee; padding:5px;&quot;&gt;
&lt;b&gt;&quot;Do you know how to disable or turn off the right mouse click menu for cfgrid?&quot;&lt;/b&gt;
&lt;/div&gt;

This is actually pretty easy, all you need to do is set up a listener on the contextmenu event and have the listener cancel the event. Here is the code (&lt;a href=&quot;http://www.coldfusionguy.com/coldfusion/samples/cfgridsample5.cfm&quot; target=&quot;_blank&quot;&gt;click here to try it&lt;/a&gt;):  [More]
				</description>
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 22 Oct 2008 20:39:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/10/22/CFGrid-Disable-the-Right-Mouse-Click-Event</guid>
				
			</item>
			
			<item>
				<title>Workaround for CFInput DateField + CFDiv + Internet Explorer Glitch</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/6/25/Workaround-for-CFInput-DateField--CFDiv--Internet-Explorer-Glitch</link>
				<description>
				
				A while back I blogged about a &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/11/5/CF8-AJAX-Features-CFInput-TypeDateField--CFDiv---Internet-Explorer--Glitch&quot; target=&quot;_blank&quot;&gt;div layer positioning glitch&lt;/a&gt; that occurs in IE when you position a cfinput datefield above a cflayout or cfdiv generated div layer. This problem seems to be cause by the fact that in IE, a relative positioned element influences the stacking order of it&apos;s child-elements, which violates the &lt;a href=&quot;http://www.w3.org/TR/CSS21/visuren.html#z-index&quot; target=&quot;_blank&quot;&gt;CSS specification&lt;/a&gt;, but who really needs standards anyways right?

Well, I figured out a way to workaround it, and it&apos;s really stupid that I didn&apos;t think of it before. I kept trying (unsuccessfully) to write a JavaScript function that would find the layers and reposition them after the page loaded, when finally a light bulb went on in my head, and I came up with a much simpler solution.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 25 Jun 2008 21:04:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/6/25/Workaround-for-CFInput-DateField--CFDiv--Internet-Explorer-Glitch</guid>
				
			</item>
			
			<item>
				<title>CFWindow as Image onMouseOver Enlarger/Pop Up</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/5/30/CFWindow-as-Image-onMouseOver-EnlargerPop-Up</link>
				<description>
				
				In a comment on a previous post I wrote about &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/4/CF8-AJAX-Features-Enhancing-CFWindow-with-JavaScript&quot;&gt;Enhancing CFWindow with JavaScript&lt;/a&gt;, Ebenezer asked the question:
&lt;div style=&quot;border:1px solid silver; background: #eeeeee; padding:5px;&quot;&gt;&lt;b&gt;
&quot;CFwindows is quite nice, but i need it to behave in a particular way. I want to remove the frame and the (x) close button. I want to use cfwindow to just &quot;display the bigger size of an image on mouseover and close on mouse out. Anyone with an idea.&quot;
&lt;/b&gt;&lt;/div&gt;

Below is an example of how to remove the toolbar and borders from the cfwindow and display the large image when you rollover the thumbnail.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Fri, 30 May 2008 19:29:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/5/30/CFWindow-as-Image-onMouseOver-EnlargerPop-Up</guid>
				
			</item>
			
			<item>
				<title>Reposition A CFWindow  From Center</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/4/22/Reposition-A-CFWindow--From-Center</link>
				<description>
				
				In a comment on a previous post I wrote about &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/4/CF8-AJAX-Features-Enhancing-CFWindow-with-JavaScript&quot;&gt;Enhancing CFWindow with JavaScript&lt;/a&gt;, Nathan asked the question:

&lt;div style=&quot;border:1px solid silver; background: #eeeeee; padding:5px;&quot;&gt;
&lt;b&gt;&quot;I like the center feature but if you want to move the window to a little below center what function do you call to center then move it down 20 px?&quot;&lt;/b&gt;
&lt;/div&gt;


The answer is to use the &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html#center&quot; target=&quot;_blank&quot;&gt;Ext.BasicDialog.center()&lt;/a&gt; function, then get the windows &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.Element.html&quot; target=&quot;_blank&quot;&gt;Ext.Element&lt;/a&gt; object using the &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html#getEl&quot; target=&quot;_blank&quot;&gt;Ext.BasicDialog.getEl()&lt;/a&gt; function. The Ext.Element object has the getX() and getY() methods, which will give you access to the windows X and Y coordinates. You can use those, in combination with the Ext.BasicDialog.moveTo() function, to move the window to your desired position relative to the center.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 22 Apr 2008 16:29:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/4/22/Reposition-A-CFWindow--From-Center</guid>
				
			</item>
			
			<item>
				<title>Google Maps API in a ColdFusion Custom Tag</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/4/18/Google-Maps-API-in-a-ColdFusion-Custom-Tag</link>
				<description>
				
				At last nights Orange County ColdFusion Users Group meeting (&lt;a href=&quot;http://www.occfug.org&quot; target=&quot;_blank&quot;&gt;occfug.org&lt;/a&gt;) I presented on the topic of integrating the &lt;a href=&quot;http://code.google.com/apis/maps/documentation/index.html&quot; target=&quot;_blank&quot;&gt;Google Maps API&lt;/a&gt; into a ColdFusion application. I made a custom tag for the presentation that generates a Google API powered map, and I am posting it here for all the people that wanted access to the source code.  [More]
				</description>
				
				<category>Google API</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Fri, 18 Apr 2008 19:04:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/4/18/Google-Maps-API-in-a-ColdFusion-Custom-Tag</guid>
				
				<enclosure url="http://www.coldfusionguy.com/ColdFusion/blog/enclosures/cf_gMap.zip" length="4541" type="application/x-zip-compressed"/>
				
			</item>
			
			<item>
				<title>CFWindow with a Minimize / Maximize button</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/3/11/CFWindow-with-a-Minimize--Maximize-button</link>
				<description>
				
				Michael Asked:
&lt;div style=&quot;border:1px solid silver; background: #eeeeee; padding:5px;&quot;&gt;
&lt;b&gt;&quot;Is there any way to add a minimize button to a CFWindow? &quot;&lt;/b&gt;
&lt;/div&gt;

As a matter of fact, the &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html&quot; target=&quot;_blank&quot;&gt;Ext.BasicDialog&lt;/a&gt; object that powers the CFWindow tag does have a &quot;collapsible&quot; configuration option. However, Adobe did not add that as an attribute in the CF8 implementation of CFWindow. They currently have it hard-coded so that all CFWindow generated dialogs are set to &quot;collapsible:false&quot;. Hopefully they will add a collapsible attribute to the CFWindow tag in some future release, but until then, adding the Minimize/Maximize button onto the CFWindow tool bar is a fairly painless job with the snippet of JavaScript that you can find below.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 11 Mar 2008 19:42:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/3/11/CFWindow-with-a-Minimize--Maximize-button</guid>
				
			</item>
			
			<item>
				<title>CFGrid: Disabling the Selected Row HighLighting</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/3/11/CFGrid-Disabling-the-Selected-Row-HighLighting</link>
				<description>
				
				I was working on a project the other day that was using CFGrid to manage some data and there was a button on each row to perform a certain action. However, we didn&apos;t want the background color of a row to change when the user clicks on a row or on the button. I created this little javascript that adds a listener to the &quot;&lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.grid.RowSelectionModel.html#event-beforerowselect&quot; target=&quot;_blank&quot;&gt;beforerowselect&lt;/a&gt;&quot; event in the underlying Ext.grid&apos;s &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.grid.RowSelectionModel.html&quot; target=&quot;_blank&quot;&gt;Row Selection Model&lt;/a&gt; and cancels any row selections, preventing the row from being highlighted.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 11 Mar 2008 09:00:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/3/11/CFGrid-Disabling-the-Selected-Row-HighLighting</guid>
				
			</item>
			
			<item>
				<title>CFWindow Event Listeners</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/1/30/CFWindow-Event-Listeners</link>
				<description>
				
				The CFWindow tag is built using the &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html&quot; target=&quot;_blank&quot;&gt;Ext.BasicDialog&lt;/a&gt; object. This object has several public events that you can add listeners to. You can use the &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html#on&quot; target=&quot;_blank&quot;&gt;Ext.BasicDialog objects on() function&lt;/a&gt; to add listeners to these events that will fire a specific function when the specified event occurs. You can program the listener functions to react as necessary to the various events. Here is a list of the events that you can set up listeners for:  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 30 Jan 2008 15:47:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/1/30/CFWindow-Event-Listeners</guid>
				
			</item>
			
			<item>
				<title>Session.cfc</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/1/23/Sessioncfc</link>
				<description>
				
				In a &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/11/12/CF8-AJAX-Features-CFLayout-Typetab--Saving-Selected-Tab-State-In-Session&quot; target=&quot;_blank&quot;&gt;previous post&lt;/a&gt; I created a CFC to save simple variables into the session scope. In that CFC I had set up two functions, &quot;SetSessionVar&quot; and &quot;GetSessionVar&quot;. However I ended up only needing the &quot;SetSessionVar&quot; function for my example so I never really tested the &quot;GetSessionVar&quot; function. Someone asked me today how to invoke it, and that is when I realized there were a couple little problems that I needed to fix.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 23 Jan 2008 16:52:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/1/23/Sessioncfc</guid>
				
			</item>
			
			<item>
				<title>JavaScript to Dynamically Change the Dimensions of a CFWindow</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/1/23/JavaScript-to-Dynamically-Change-the-Dimensions-of-a-CFWindow</link>
				<description>
				
				In a &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/4/CF8-AJAX-Features-Enhancing-CFWindow-with-JavaScript&quot; target=&quot;_blank&quot;&gt;previous entry&lt;/a&gt; I demonstrated how you can use the underlying Ext framework to enhance your CFWindow. And then Matt left a comment asking if it was possible to dynamically resize the CFWindow. The answer is yes and it&apos;s quite easy actually. The CFWindow utilizes the Ext.BasicDialog object which has a function called &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html#setContentSize&quot; target=&quot;_blank&quot;&gt;setContentSize&lt;/a&gt;, which resizes the dialog to fit the specified content size.  [More]
				</description>
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 23 Jan 2008 14:43:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2008/1/23/JavaScript-to-Dynamically-Change-the-Dimensions-of-a-CFWindow</guid>
				
			</item>
			
			<item>
				<title>JavaScript to Identify Current CFWindows</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/20/JavaScript-to-Identify-Current-CFWindows</link>
				<description>
				
				A couple weeks ago I wrote a post on &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/4/CF8-AJAX-Features-Enhancing-CFWindow-with-JavaScript&quot; target=&quot;_blank&quot;&gt;Enhancing CFWindow with JavaScript&lt;/a&gt;, and it was recently asked if there was a way to identify all the windows and their visible status that currently exist on a page where you are using the &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/JavaScriptFcns_28.html#1202979&quot; target=&quot;_blank&quot;&gt;ColdFusion.Window.create&lt;/a&gt; function to create new CFWindow instances. It took a few minutes of digging with FireBug, but I found that there is a ColdFusion.objectCache object that holds information about the various ext object that get created with the ColdFusion AJAX features. I created a function that loops through the objectCache and finds objects that have a &quot;cfwindowname&quot; property. Then used the Ext.BasicDialog.isVisible() function to determine if the window is currently visible.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Thu, 20 Dec 2007 15:12:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/20/JavaScript-to-Identify-Current-CFWindows</guid>
				
			</item>
			
			<item>
				<title>Using Ext.QuickTips to Enhance Your Tooltips</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/5/Using-ExtQuickTips-to-Enhance-Your-Tooltips</link>
				<description>
				
				The &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.QuickTips.html&quot; target=&quot;_blank&quot;&gt;Ext.QuickTips&lt;/a&gt; functionality provides attractive and customizable tooltips for any element. Adobe didn&apos;t add any QuickTips functionality to ColdFusion 8, but the JavaScript files to support it are included with the other Ext related files in the &quot;CFIDE/scripts&quot; directory, so I am going to show you a couple simple ways you can utilize them to enhance your tooltips.  [More]
				</description>
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 05 Dec 2007 14:12:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/5/Using-ExtQuickTips-to-Enhance-Your-Tooltips</guid>
				
			</item>
			
			<item>
				<title>CF8 AJAX Features: Enhancing CFWindow with JavaScript</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/4/CF8-AJAX-Features-Enhancing-CFWindow-with-JavaScript</link>
				<description>
				
				ColdFusion 8 added the CFWindow tag which creates a pop-up window in the browser, which is not really a pop-up window, but rather it is a div layer that looks like a window and can be hidden and shown via JavaScript. Today, I am going to demonstrate a couple ways you can expand your use of the CFWindow tag by incorporating some JavaScript that interacts with the underlying &lt;a href=&quot;http://extjs.com/deploy/ext/docs/output/Ext.BasicDialog.html&quot; target=&quot;_blank&quot;&gt;Ext.BasicDialog&lt;/a&gt; object.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 04 Dec 2007 15:16:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/4/CF8-AJAX-Features-Enhancing-CFWindow-with-JavaScript</guid>
				
			</item>
			
			<item>
				<title>CFLayout Type=&quot;tab&quot; - Saving Multiple Tab Layout States In Session</title>
				<link>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/3/CFLayout-Typetab--Saving-Multiple-Tab-Layout-States-In-Session</link>
				<description>
				
				A couple weeks ago I posted an entry on &lt;a href=&quot;http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/11/12/CF8-AJAX-Features-CFLayout-Typetab--Saving-Selected-Tab-State-In-Session&quot; target=&quot;_blank&quot;&gt;how to save the state of selected CFLayout generated tabs&lt;/a&gt; on a page. Then it was asked how that example could be expanded to save the state of multiple tab layouts on a page. I have created an example of how to do that below.  [More]
				</description>
				
				<category>AJAX</category>				
				
				<category>JavaScript</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 03 Dec 2007 13:55:00 -0400</pubDate>
				<guid>http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/12/3/CFLayout-Typetab--Saving-Multiple-Tab-Layout-States-In-Session</guid>
				
			</item>
			</channel></rss>