0 Replies Latest reply on Aug 22, 2011 11:01 PM by ttfairtt123

    JavaScript Window display problem

    ttfairtt123 Level 1

      Hi All,

       

      Our form in livecycle contains an pop-up javascrip windows (a dialogue box).

      The pop-up window contains several radio buttons and a content box for displaying content.

       

      This pop-up windows would displayed a list of information in the content box based on the selection of radio button.

       

      So, when user select different radio buttons, the content displayed in the content box will be reloaded.

      To reload the content box, we using the following method:

      ###################

      if(raido butto click) then

      //some filters

      var vNewList = getCompListData(this.strSubmCompCo, "conditionA");

      var dlgInit = {"lst1":vNewList};

      //load data

      dialog.load(dlgInit);

      ###################

       

      My problem is... the reload process seems not working in a very efficient manner.

      For example:

      1. Radio button A is selected, and content corresponding to radio button A is displayed.

      2. Then, user selects the radio button B

      3. Then, content box becomes empty and the veritical scroll bar become larger and larger. And finall, the content corresponding to button B start to show up.

       

      The pop-up windows seems to re-draw the content box for every-element deleted from the content box. Is there any ways to clean the content of the pop-up windows?