Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window resizing problem

Status
Not open for further replies.

way2many

Technical User
Nov 28, 2003
139
US
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=&quot;ResizeWindow('width=<%=w%>','height=<%=h%>')&quot;

Here is JS function:
<script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot;>
<!--
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.
 

What errors are the users getting?

What browser(s) are the errors appearing in? (i.e. NN6, Mozilla 1.5, etc)

What browser do you use (that it works fine in)?

Dan
 
Thanks Dan,
I went to my client's office and found out that he uses some kind of Yahoo browser which gives an error on resizing window.
A generic &quot;Do you wish to debug?&quot; OK/Cancel messagebox pops up. Debugging window shows that error is in this line:
window.resizeTo(outerWidth, outerHeight);

The program which triggered this error is YBrowser.exe (located in Program Files/Yahoo/ directory)

Regular IE - no errors.

 

I've never seen the Yahoo browser (in fact, until you mentioned it, I had no idea they had made one)...

It looks like it doesn't support window.ResizeTo... Get them to upgrade to a more standard browser ;o)

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top