Dynamically Resizing Popup Window Based on Form Contents

A

Alan

I am trying to use javascript modal popup windows
(window.createModalWindow) to display HTML forms.
The problem is - the form size and content varies. The same entry
form, under different circumstances can include different fields with
different field-lengths.

I am using a <TABLE> to place the fields on the form. My question is
- how can I dynamically control the size of the popup and fit it to
the size of the <TABLE> based on the form's contents?

Thanks for your help.

Alan.
 
I

Ian Renfrew

Hi Alan:

I believe that you have two choices:

Try including following code in popup form: window.dialogHeight = "620px";
window.dialogWidth = "335px";

or

Try including following code in HTML form calling popup form:
window.showModalDialog("popupForm.html","","dialogHeight:620px;dialogWidth:335px;center:yes;help:no;scroll:no;resizable:yes;status:no;edge:sunken;");


Regards, Ian Renfrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top