Forums
This topic is locked
Popup resized dinamically according to images
Posted 16 May 2002 17:58:42
1
has voted
16 May 2002 17:58:42 Ivan Halen posted:
Ok, I have a page that displays dinamically some thumbnails of pictures that have different sizes... thumbnails are all of the same dimension, but full-size pictures are not: some were taken from my webcam at 320*240, some from my digital camera at 640*480 or more, some from scanner and have a variable size... of course, the list of pictures with their thumbnails is taken from a database - I used Horizontal Looper to do this -. When I click on the single thumbnails, a detail page is opened showing the full-size image in a popup window (I used the Open Browser Window javaScript that comes in the Behavior palette and slightly modified the script)Now comes the question: is there a way to set the size of this popup window dinamically, according to the width and height of the full-size image opened? It's nice to have a 640*480 image opened in a 640*480 popup window, but it's not so good to have a 320*240 image opened in the same 640*480 window! I could insert the width and the height of the single images in specific fields of my database and recall them to resize dinamically the popup, but this would be an annoying job! What I'd like is to don't specify any width and height, and let ASP do this job for me... can someone help? Thank you
Replies
Replied 17 May 2002 13:30:55
17 May 2002 13:30:55 Andrew Watson replied:
You need to get the size of an image file ?
You will need a component!
ServerObjects provide a free component calle ImageSize (beleive it or not) and is available here...
www.serverobjects.com/products.htm#free
This should do what you want it to...however it requires a dll to be registered on the server.!!!
some hosts will some wont.
Cheers
LEED
:: Son, im Thirty.... ::
You will need a component!
ServerObjects provide a free component calle ImageSize (beleive it or not) and is available here...
www.serverobjects.com/products.htm#free
This should do what you want it to...however it requires a dll to be registered on the server.!!!
some hosts will some wont.
Cheers
LEED
:: Son, im Thirty.... ::
Replied 17 May 2002 15:11:04
17 May 2002 15:11:04 Ivan Halen replied:
thanks, leed, but I think that my host doesn't support registration of new components...
I saw that UDZone is about to release Adv Open Window 3 in July: maybe it will resolve mty problem...
Thanks again!
I saw that UDZone is about to release Adv Open Window 3 in July: maybe it will resolve mty problem...
Thanks again!