You know, from a usability perspective, re-sizing the browser window
with every click is really not a good idea. Personally, I would be
pretty annoyed if my browser window kept resizing. I think you should
just open it to the maximum w/h and leave it at that.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Matthew Walker [mailto:Matthew@;cabbagetree.co.nz] 
Sent: Wednesday, November 13, 2002 3:54 PM
To: CF-Talk
Subject: RE: Dynamically adjust window based on image size?

How about this:

<body
onload="window.resizeTo(document.getElementById('myImg').width),document
getElementById('myImg').height));">

No cf at all!

Matthew Walker
http://www.matthewwalker.net.nz/



> -----Original Message-----
> From: Bob Haroche [mailto:spambait@;onpointsolutions.com]
> Sent: Thursday, 14 November 2002 9:31 a.m.
> To: CF-Talk
> Subject: Dynamically adjust window based on image size?
> 
> 
> I'm working on a feature where a visitor can click on a link for "more
> photos". That triggers a pop up window which displays the first of X
> images in a slideshow. The list of images is created from a db query.
> 
> The images will be uploaded by the client and may not be all the same
> dimensions. I'd like to have the slideshow window dynamically adjust
> to expand or contract around each image currently being displayed.
> 
> I know this had to be done at some time so I'm looking for a good
> custom tag or script to start with.
> 
> Two questions:
> 
> 1. Any recommendations for such a script?
> 
> 2. Using CF5 how would one grab an image's width and height?
> 
> Thanks.
> 
> -------------
> Regards,
> Bob Haroche
> O n P o i n t  S o l u t i o n s
> www.OnPointSolutions.com
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to