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
: 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
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
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
...@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
-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
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
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,
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
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
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
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
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
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
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
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!
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
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
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
19 matches
Mail list logo