Dynamically Resizing Popup Window Based on Form Contents

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alan

    #1

    Dynamically Resizing Popup Window Based on Form Contents

    I am trying to use javascript modal popup windows
    (window.createM odalWindow) 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.

  • Ian Renfrew

    #2
    Re: Dynamically Resizing Popup Window Based on Form Contents

    Hi Alan:

    I believe that you have two choices:

    Try including following code in popup form: window.dialogHe ight = "620px";
    window.dialogWi dth = "335px";

    or

    Try including following code in HTML form calling popup form:
    window.showModa lDialog("popupF orm.html","","d ialogHeight:620 px;dialogWidth: 335px;center:ye s;help:no;scrol l:no;resizable: yes;status:no;e dge:sunken;");


    Regards, Ian Renfrew

    "Alan" <asanie@hotmail .com> wrote in message
    news:1114658735 .145389.34490@g 14g2000cwa.goog legroups.com...[color=blue]
    >I am trying to use javascript modal popup windows
    > (window.createM odalWindow) 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.
    >[/color]


    Comment

    Working...