popups across browsers
Posted: Wed 24 Apr 2013 3:50 pm
Oh the joys of website design.
I "borrowed" some js popup code to display photos of locations described on a Google map within the framework of a saratoga template page http://www.jerbils.info/saratoga/wxzlatina.php.
Essentially, it does a window.open specifying the URL of the image, a window name (all different) and additional width and height parameters (which are essentially, 600 x appropriate amount to preserve aspect ratio). All except one image is (much) larger than the window size specified.
. Firefox/Waterfox (16.0.1) displays it exactly as I want,
window, the size specified,
image fitting exactly in the frame,
window resizable and
+/- zoom option
it even tells me at the top what the scaling % is
and the one image that is only 496 wide (in 500 window as opposed to 600) is expanded appropriately
. Chrome 26.0.1410.64 m displays it exactly the same as Firefox (except for scaling % and)
except for the one image that is only 496 wide originally. It leaves an appropriate right and bottom margin.
. Safari 5.1.7 displays them reasonably enough
apart from leaving a deep (additional) bottom margin for some reason
the image is the same size as Chrome & Waterfox though
the one image that is only 496 wide has the small right margin as well as the deep bottom margin
. SeaMonkey 2.17.1 displays everything fine, including its normal bottom line gumph, except that the image is displayed full-size in the window (a bit alarming on the second image as it was just the white sky shown which made it look as if no image was being displayed). The - zoom reduces it to fit the window exactly.
. Internet Explorer 10
window not the size specified (smaller)
thin top and left margins
fat bottom and right margins
not resizable (even when zoomed)
+/- zoom option
I don't care about the minor things, like margins, but any idea why I can't resize the images in IE?
Running under Win 7.
Ooi, on a different topic, any idea why the forecast on the "Conditions" box on the Google map on that page seems to bear no relation to the Wunderground forecast on the "Forecast Details" page even though they are in theory based on the same area?
I "borrowed" some js popup code to display photos of locations described on a Google map within the framework of a saratoga template page http://www.jerbils.info/saratoga/wxzlatina.php.
Essentially, it does a window.open specifying the URL of the image, a window name (all different) and additional width and height parameters (which are essentially, 600 x appropriate amount to preserve aspect ratio). All except one image is (much) larger than the window size specified.
. Firefox/Waterfox (16.0.1) displays it exactly as I want,
window, the size specified,
image fitting exactly in the frame,
window resizable and
+/- zoom option
it even tells me at the top what the scaling % is
and the one image that is only 496 wide (in 500 window as opposed to 600) is expanded appropriately
. Chrome 26.0.1410.64 m displays it exactly the same as Firefox (except for scaling % and)
except for the one image that is only 496 wide originally. It leaves an appropriate right and bottom margin.
. Safari 5.1.7 displays them reasonably enough
apart from leaving a deep (additional) bottom margin for some reason
the image is the same size as Chrome & Waterfox though
the one image that is only 496 wide has the small right margin as well as the deep bottom margin
. SeaMonkey 2.17.1 displays everything fine, including its normal bottom line gumph, except that the image is displayed full-size in the window (a bit alarming on the second image as it was just the white sky shown which made it look as if no image was being displayed). The - zoom reduces it to fit the window exactly.
. Internet Explorer 10
window not the size specified (smaller)
thin top and left margins
fat bottom and right margins
not resizable (even when zoomed)
+/- zoom option
I don't care about the minor things, like margins, but any idea why I can't resize the images in IE?
Running under Win 7.
Ooi, on a different topic, any idea why the forecast on the "Conditions" box on the Google map on that page seems to bear no relation to the Wunderground forecast on the "Forecast Details" page even though they are in theory based on the same area?