<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2394047611434743665</id><updated>2011-07-07T14:11:52.542-07:00</updated><category term='resize'/><category term='Coldfusion'/><category term='cfwindow'/><category term='ext'/><category term='dynamic'/><category term='resizing'/><title type='text'>cfrelief</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://cfrelief.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2394047611434743665/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://cfrelief.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>MicahZ</name><uri>http://www.blogger.com/profile/09790523131610901700</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2394047611434743665.post-8209449309924249925</id><published>2009-07-02T13:10:00.000-07:00</published><updated>2009-07-08T07:51:13.837-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='dynamic'/><category scheme='http://www.blogger.com/atom/ns#' term='ext'/><category scheme='http://www.blogger.com/atom/ns#' term='resizing'/><category scheme='http://www.blogger.com/atom/ns#' term='Coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='cfwindow'/><category scheme='http://www.blogger.com/atom/ns#' term='resize'/><title type='text'>Dynamically resizing a CFWindow</title><content type='html'>I've recently been exploring the underlying ext javascript framework that Coldfusion uses for some of its tags (cfwindow, cfgrid, etc.).  In one of my projects I needed to dynamically resize a cfwindow through an onclick event.  Take this simple html page for example:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="font-size:85%;"&gt;&amp;lt;a href="#" onclick="ColdFusion.Window.show('myWindow')"&amp;gt;Click Me&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;table&amp;gt;&lt;br /&gt;   &amp;lt;tr&amp;gt;&lt;br /&gt;          &amp;lt;td&amp;gt;Height:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="text" name="theHeight" id="myHeight" /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;          &amp;lt;td&amp;gt;Width:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type="text" name="theWidth" id="myWidth" /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;/tr&amp;gt;&lt;br /&gt;      &amp;lt;tr&amp;gt;&lt;br /&gt;          &amp;lt;td colspan="2" align="right"&amp;gt;&amp;lt;input type="button" value="change" name="submitIt" onclick="myWindow()" /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;      &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&amp;lt;cfwindow name="myWindow" initshow="false" height="300" width="600" &amp;gt;This is a CFWINDOW&amp;lt;/cfwindow&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;The anchor tag at the top shows the window and the input elements are for showing and resizing the window.  Next we add the javascript for resizing the window.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(51, 102, 255);"&gt;&lt;span style="font-size:85%;"&gt;function myWindow(){&lt;br /&gt;      var theView = ColdFusion.Window.getWindowObject('myWindow');&lt;br /&gt;      theView.resizeTo(document.getElementById('myWidth').value, document.getElementById('myHeight').value);&lt;br /&gt;      ColdFusion.Window.show('myWindow');&lt;br /&gt; }&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;You'll notice an unfamiliar function called resizeTo.  This is actually diving a bit into the EXT library (1.1).  It can be found &lt;a href="http://extjs.com/deploy/ext-1.1.1/docs/"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;a href="http://extjs.com/deploy/ext-1.1.1/docs/"&gt;here&lt;/a&gt;.  Make sure you use 1.1 and not the most current version since ColdFusion uses 1.1.  After reading a little from Adobe livedocs you'll find that getWindowObject returns the Ext object "Basic Dialog".  To find all the functions available go to the ext docs and find BasicDialog and voila.  You now have all of the properties and methods for that object.  &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2394047611434743665-8209449309924249925?l=cfrelief.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cfrelief.blogspot.com/feeds/8209449309924249925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cfrelief.blogspot.com/2009/07/dynamically-resizing-cfwindow.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2394047611434743665/posts/default/8209449309924249925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2394047611434743665/posts/default/8209449309924249925'/><link rel='alternate' type='text/html' href='http://cfrelief.blogspot.com/2009/07/dynamically-resizing-cfwindow.html' title='Dynamically resizing a CFWindow'/><author><name>MicahZ</name><uri>http://www.blogger.com/profile/09790523131610901700</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2394047611434743665.post-6358134826925181684</id><published>2009-07-01T08:03:00.000-07:00</published><updated>2009-07-01T12:57:43.909-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Coldfusion'/><title type='text'>Hello World</title><content type='html'>This is my first posting and I'm not quite sure who will read this but my hope is that this will prove helpful information for novice and experienced Coldfusion programmers.  My plan is to keep it dedicated to Coldfusion but you'll find some other subjects thrown in that I find interesting.  I'm a die hard Mariner's fan, so you might find some M's ramblings.  You'll soon also discover my extreme hatred for Internet Explorer.  They'll be some hating on that as well.  I use jQuery quite a bit so they'll be some topics on that.  But all in all, this is geared for Coldfusion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2394047611434743665-6358134826925181684?l=cfrelief.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://cfrelief.blogspot.com/feeds/6358134826925181684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://cfrelief.blogspot.com/2009/07/hello-world.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2394047611434743665/posts/default/6358134826925181684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2394047611434743665/posts/default/6358134826925181684'/><link rel='alternate' type='text/html' href='http://cfrelief.blogspot.com/2009/07/hello-world.html' title='Hello World'/><author><name>MicahZ</name><uri>http://www.blogger.com/profile/09790523131610901700</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
