Forum Moderators: open

Message Too Old, No Replies

Sizing popup windows dynamically

         

enchant

8:33 pm on Jun 1, 2005 (gmt 0)

10+ Year Member



On many of my websites, my customers have thumbnail images with clickable enlargements. I like to have the popup window sized to fit the image. I have the javascript that will handle this, but for each image that is popped up enlarged, I have to pass the specific dimensions to the javascript code. But here's how I'd LIKE to do it:

On the main html page, I'd have a link to a perl script that would generate a web page in a popup window, and somehow, from within this perl script, it would determine the size of the image (I already know how to do that part) and then specify how large the browser popup window would be.

Is this possible? Let me know if I'm not being clear in my explanation.

mattglet

8:38 pm on Jun 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The resizeTo() [mozilla.org] function might be what you need.

enchant

8:55 pm on Jun 1, 2005 (gmt 0)

10+ Year Member



What took you so long to answer. I had to wait a whole five minutes! :)

That's exactly what I was looking for. Thanks!