try something like this, Pete: <cfoutput> [script type="text/javascript"] var extW = ColdFusion.Window.getWindowObject('albumwin'); extW.setSize({width: #imgInfo.width#, height: #imgInfo.height#}); [/script] </cfoutput>
you may have to make it into a js function and call it using ajaxonload() from within the page loaded inside your cfwindow Azadi On 18/10/2010 09:08 , Pete Ruckelshaus 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:338690 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm