Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resizing a popup window based on its contents?


puzzlezone

Recommended Posts

Hello :)

 

Long story short, I need a popup in a custom page. I added a new database field, included it in the query, and that all works fine.

 

'<a href="java script:popupWindow(\'http://mydomain/images/' . $product_info['products_image2'] . '\')"><font size=4 color=blue><p>Click to enlarge</font></a>'

 

The problem is, the popup displays the image really small, unless you drag it out, then you can see the whole picture.

 

Is there a way to have this window resize to fit its contents?

 

Thanks a bunch!

Link to comment
Share on other sites

Hello :)

 

Long story short, I need a popup in a custom page. I added a new database field, included it in the query, and that all works fine.

 

'<a href="java script:popupWindow(\'http://mydomain/images/' . $product_info['products_image2'] . '\')"><font size=4 color=blue><p>Click to enlarge</font></a>'

 

The problem is, the popup displays the image really small, unless you drag it out, then you can see the whole picture.

 

Is there a way to have this window resize to fit its contents?

 

Thanks a bunch!

 

Hmm... the popup window should already resiz based on the image size. In any case, why don't you try lightbox, I think it's pretty cool.

 

http://www.oscommerce.com/community/contributions,4383

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...