Where does this js code reside? Are you trying to do this inline in the cfwindow's source code, or calling it as a function?
Are you getting any js errors (use Firebug in Firefox to get good js error information)? I use the resizeTo() method, and the code you provided looks like it should work fine, so I have to suspect that your js isn't firing properly. On Sun, Oct 17, 2010 at 8:16 PM, Pete Ruckelshaus <pruckelsh...@gmail.com>wrote: > > Yes, and I'm using imageInfo() to grab the dimensions of the image (the x,y > dimensions in the resizeTo()). > > On Sun, Oct 17, 2010 at 9:13 PM, Michael Grant <mgr...@modus.bz> wrote: > > > > > Just to make sure, do you have that wrapped in cfoutput? > > > > On Sun, Oct 17, 2010 at 9:08 PM, Pete Ruckelshaus < > pruckelsh...@gmail.com > > >wrote: > > > > > > > > I'd like to be able to dynamically resize a ColdFusion window created > > with > > > cfwindow. I haven't found anything definitive as to whether this is > > > possible; I did try the following: > > > > > > [script language="javascript"> > > > > > > > > > > > > ColdFusion.Window.getWindowObject('albumwin').resizeTo(#imgInfo.width#,#imgInfo.height#); > > > [/script> > > > > > > (script tags broken intentionally). This doesn't seem to work. Is > there > > a > > > way to do this? > > > > > > Thanks, > > > > > > Pete > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338283 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm