Hi,
from my asp "product list" page user clicks on the image and pop-up winwow with larger image must be opened with exact dimensions as the image itself (they all are very different).
I'm passing prod_id to this pop-up page.
Then on this page in BODY OnLoad event I'm passing the dimensions of the image:
onload="ResizeWindow('width=<%=w%>','height=<%=h%>')"
Here is JS function:
<script language="JavaScript" type="text/JavaScript">
<!--
function ResizeWindow(outerWidth, outerHeight) { //v2.0
window.resizeTo(outerWidth, outerHeight);
}
//-->
</script>
Problem.
On some PCs users get an error.
On mine it works OK.
What do I do wrong?
Are there any better methods of dynamic resizing of pop-ups?
Thanks.
from my asp "product list" page user clicks on the image and pop-up winwow with larger image must be opened with exact dimensions as the image itself (they all are very different).
I'm passing prod_id to this pop-up page.
Then on this page in BODY OnLoad event I'm passing the dimensions of the image:
onload="ResizeWindow('width=<%=w%>','height=<%=h%>')"
Here is JS function:
<script language="JavaScript" type="text/JavaScript">
<!--
function ResizeWindow(outerWidth, outerHeight) { //v2.0
window.resizeTo(outerWidth, outerHeight);
}
//-->
</script>
Problem.
On some PCs users get an error.
On mine it works OK.
What do I do wrong?
Are there any better methods of dynamic resizing of pop-ups?
Thanks.