Re: Dynamically resizing a cfwindow?

2010-10-30 Thread Azadi Saryev
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

RE: Dynamically resizing a cfwindow?

2010-10-27 Thread Brook Davies
: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] Sent: October-26-10 3:04 PM To: cf-talk Subject: Re: Dynamically resizing a cfwindow? Thanks. The problem seems to be that CF is dynamically appending a value to the window ID; for example, here's the HTML: div id=cf_window1288130408876 class=x

RE: Dynamically resizing a cfwindow?

2010-10-26 Thread Brook Davies
that the Ext namespace exists and can be used like this? But I could be wrong... Brook -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: October-25-10 7:28 PM To: cf-talk Subject: RE: Dynamically resizing a cfwindow? Which version of ColdFusion are you trying

Re: Dynamically resizing a cfwindow?

2010-10-26 Thread Michael Grant
namespace exists and can be used like this? But I could be wrong... Brook -Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: October-25-10 7:28 PM To: cf-talk Subject: RE: Dynamically resizing a cfwindow? Which version of ColdFusion are you trying

Re: Dynamically resizing a cfwindow?

2010-10-26 Thread Pete Ruckelshaus
...@andyscott.id.au] Sent: October-25-10 7:28 PM To: cf-talk Subject: RE: Dynamically resizing a cfwindow? Which version of ColdFusion are you trying this on? Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Pete Ruckelshaus [mailto:pruckelsh

Re: Dynamically resizing a cfwindow?

2010-10-26 Thread Pete Ruckelshaus
-Original Message- From: Andrew Scott [mailto:andr...@andyscott.id.au] Sent: October-25-10 7:28 PM To: cf-talk Subject: RE: Dynamically resizing a cfwindow? Which version of ColdFusion are you trying this on? Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message

Re: Dynamically resizing a cfwindow?

2010-10-25 Thread Pete Ruckelshaus
Sorry...busy life kept me away from this project for a little while. self.resizeTo(*x,y*) didn't work. Any other ideas? On Mon, Oct 18, 2010 at 8:10 PM, Michael Grant mgr...@modus.bz wrote: If it's inside the window why not try cutting CF out of it? cfoutput script

Re: Dynamically resizing a cfwindow?

2010-10-25 Thread Michael Grant
What does the debug window say in firefox or chrome when js (mis)fires? On Mon, Oct 25, 2010 at 7:50 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote: Sorry...busy life kept me away from this project for a little while. self.resizeTo(*x,y*) didn't work. Any other ideas? On Mon, Oct 18,

Re: Dynamically resizing a cfwindow?

2010-10-25 Thread Pete Ruckelshaus
That's the thing, it's not misfiring...using Chrome with Developer Tools and resource tracking enabled. Not getting anything odd at all in the CF logger window. So, yeah, I'm stumped. Pete On Mon, Oct 25, 2010 at 7:53 PM, Michael Grant mgr...@modus.bz wrote: What does the debug window say

Re: Dynamically resizing a cfwindow?

2010-10-25 Thread Michael Grant
Can you resize it from the caller? Just as a test. On Mon, Oct 25, 2010 at 9:21 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote: That's the thing, it's not misfiring...using Chrome with Developer Tools and resource tracking enabled. Not getting anything odd at all in the CF logger

Re: Dynamically resizing a cfwindow?

2010-10-25 Thread Pete Ruckelshaus
Not sure if I follow. Put the code in the parent window? I tried that, works in IE, doesn't work in Chrome. The interesting thing is that when I launch the cfwindow using IE (I normally use Chrome), it resizes the parent window, but not the cfwindow (even though the this.resizeTo() code is in

Re: Dynamically resizing a cfwindow?

2010-10-25 Thread Michael Grant
Try window.resizeTo as well and see if you get anywhere. There's something else going on here. resizeTo should work in both IE6+ and Chrome. And FF2+, Opera9+ and Safari3+ too. On Mon, Oct 25, 2010 at 9:38 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote: Not sure if I follow. Put the code

RE: Dynamically resizing a cfwindow?

2010-10-25 Thread Andrew Scott
Which version of ColdFusion are you trying this on? Regards, Andrew Scott http://www.andyscott.id.au/ -Original Message- From: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] Sent: Tuesday, 26 October 2010 12:38 PM To: cf-talk Subject: Re: Dynamically resizing a cfwindow

Re: Dynamically resizing a cfwindow?

2010-10-18 Thread morgan l
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

Re: Dynamically resizing a cfwindow?

2010-10-18 Thread Pete Ruckelshaus
It's inline in the cfwindow. I want to allow previous/next navigation inside the cfwindow, and resize the window based upon the size of the image that's being loaded in the cfwindow. Complete code for the cfwindow page (getAlbum method returns the data stored for the images in an album, and

Re: Dynamically resizing a cfwindow?

2010-10-18 Thread Michael Grant
If it's inside the window why not try cutting CF out of it? cfoutput script self.resizeTo(#imgInfo.width#,#imgInfo.height#); /script /cfoutput ~| Order the Adobe Coldfusion Anthology now!

Dynamically resizing a cfwindow?

2010-10-17 Thread Pete Ruckelshaus
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

Re: Dynamically resizing a cfwindow?

2010-10-17 Thread Michael Grant
Just to make sure, do you have that wrapped in cfoutput? On Sun, Oct 17, 2010 at 9:08 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote: 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

Re: Dynamically resizing a cfwindow?

2010-10-17 Thread Pete Ruckelshaus
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