CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Easy? Size new window to image it contains

Print topic Send  topic

Author Message
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
View profile  Send private message
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/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.