try something like this, Pete:
[script type="text/javascript"]
var extW = ColdFusion.Window.getWindowObject('albumwin');
extW.setSize({width: #imgInfo.width#, height: #imgInfo.height#});
[/script]
you may have to make it into a js function and call it using
ajaxonload() from within the page lo
-
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:
d 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 Cold
work
> > the same. I assume 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
t;
> -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
&g
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...@gmail.com]
> Sent: Tuesday, 26 October 201
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 resi
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 wrote:
>
> Not sure if I follow. Put the code in the parent window?
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 t
Can you resize it from the caller?
Just as a test.
On Mon, Oct 25, 2010 at 9:21 PM, Pete Ruckelshaus wrote:
>
> 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,
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 wrote:
>
> What does the debug window say in firefox or
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 wrote:
>
> 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,
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 wrote:
>
> If it's inside the window why not try cutting CF out of it?
>
>
>
>
>
> self.resizeTo(#imgInfo.width#,#imgInfo.he
If it's inside the window why not try cutting CF out of it?
self.resizeTo(#imgInfo.width#,#imgInfo.height#);
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?t
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
incl
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 f
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 wrote:
>
> Just to make sure, do you have that wrapped in cfoutput?
>
> On Sun, Oct 17, 2010 at 9:08 PM, Pete Ruckelshaus >wrote:
>
> >
> >
Just to make sure, do you have that wrapped in cfoutput?
On Sun, Oct 17, 2010 at 9:08 PM, 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 follow
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
19 matches
Mail list logo