Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

How to resize a modal dialog window

Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Posts: 15385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic