T
tshad
I have an aspx window that is going to open a window (javascript) and
display a graphic. I want to resize the window to the size of the graphic
before it actually displays - how do I do that?
In my calling routine I have the following:
***********************************
function OpenLogoPreviewWindow()
{
window.open('logoDisplay.htm','mywindow');
}
***********************************
The logoDislay.htm page is:
****************************
<script language="JavaScript">
function entry()
{
document.LogoDisplay.src = "..\\..\\uploads\\" +
opener.document.getElementById('Logo').innerHTML;
window.resizeTo(?,?);
}
</script>
</head>
<body onLoad="entry()">
<img name="LogoDisplay">
</body>
</html>
*************************************
The program works fine but the window the graphic displays in is way to big
and the each graphic is a different size so I need the window to only be the
size of the graphic.
Thanks,
Tom
display a graphic. I want to resize the window to the size of the graphic
before it actually displays - how do I do that?
In my calling routine I have the following:
***********************************
function OpenLogoPreviewWindow()
{
window.open('logoDisplay.htm','mywindow');
}
***********************************
The logoDislay.htm page is:
****************************
<script language="JavaScript">
function entry()
{
document.LogoDisplay.src = "..\\..\\uploads\\" +
opener.document.getElementById('Logo').innerHTML;
window.resizeTo(?,?);
}
</script>
</head>
<body onLoad="entry()">
<img name="LogoDisplay">
</body>
</html>
*************************************
The program works fine but the window the graphic displays in is way to big
and the each graphic is a different size so I need the window to only be the
size of the graphic.
Thanks,
Tom