VBAjedi
Posts: 34
|
Posted: 07/30/2004, 2:50 PM |
|
I've just created a simple pop-up page named ShowPicture that does just that. The only thing the page contains is a single image control whose source is pulled from a URL variable in the control's Before Show event. This works.
How do I set this page to size itself to match whatever image is being loaded?
Thanks!
_________________
VBAjedi
jedi at NOSPAM dot obie dot com |
|
|
nathan
|
Posted: 08/02/2004, 3:11 PM |
|
I suppose you need to set the window size after obtaining image dimensions, try using GD.
|
|
|
Damian
|
Posted: 08/03/2004, 6:08 AM |
|
In your database table add a couple of extra fields - height and width.
In your ouput grid that contains the -link- place two hidden fields, height
and width, and copy the labels (ie {height}) into your javascript routine
that launches the new window in place of the height and width values.
try this link for some gd functions..
http://www.cs.huji.ac.il/support/docs/php/ref.image.html
"nathan" <nathan@forum.codecharge> wrote in message
news:5410ebbf9aaad3@news.codecharge.com...
> I suppose you need to set the window size after obtaining image
dimensions, try
> using GD.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
|