Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes How to resize a modal dialog window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to resize a modal dialog window" Watch "How to resize a modal dialog window" New topic
Author

How to resize a modal dialog window

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 279
Is there a way to resize an IE modal dialog window once a page is displayed? Here's the scenario:

I have an application that displays a prompt for user input. Once the user selects the desired parameters and clicks Submit, a PDF report file is generated and also displayed in the window.

The problem is that there a few parameters so a small dialog is appropriate to prompt the user. However, the report should be displayed in a larger window. I would like to include something like an invocation to resizeTo(800,600) in the unonload event for the first page but this does not seem to work.

The person I inherited this code from suggested writing code to close the initial prompt window and immediately re-open another. It seems there should be an easier way. Any ideas?

Note my company is an all-IE shop so browser compatibility is not an issue.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Like I always say with modal windows, I am no expert at them since I never use them.

I think you are going to have to open up another window or make the orginal window larger. A modal window is not too friendly to developers.

Ran a test:
Trying to run the reSizeTo method with a button does not work.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to resize a modal dialog window
 
Similar Threads
How to create a modal dialog without title
urgent please help
communication between parent window and modal dialog box
Modal Dilag box
calling JSP page in a Windows