By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,632 Members | 1,956 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,632 IT Pros & Developers. It's quick & easy.

Dynamically Resizing Popup Window Based on Form Contents

P: n/a
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.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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","","dialog Height:620px;dialogWidth:335px;center:yes;help:no; scroll:no;resizable:yes;status:no;edge:sunken;");
Regards, Ian Renfrew

"Alan" <as****@hotmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
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.

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.