rem:  /* the right way to do it *        top.frames[list_frame].document.write( *              "<tr>" + *                "<td>" + prefillList[i+1] + ":  </td>" + *                "<td>" + *                  "<select>" *        ) *        count--; *      } *      top.frames[list_frame].document.write( *                    "<option VALUE='"+prefillList[i+1]+"'>" + *                      prefillList[i+2] + *                    "</option>" *      ) * * but because of bug 18479 we have to hack things by putting the * <select> and the first <option> into a single write statement as follows: */  
context:     function loadFillins(){      top.frames[title_frame].document.open();      top.frames[title_frame].document.write        ("&nbsp;" + heading);      top.frames[title_frame].document.close();      top.frames[list_frame].document.open();      top.frames[list_frame].document.write(        "<form name='fSelectFillin'>" +          "<br/>" +          "<table border='0'>" +            "<tr>" +              "<td>" +                "<br/>"       )      var count;      for (i=1; !(i>=prefillList.length-2); i+=3) {        if(prefillList[i] != 0) {          count = prefillList[i];/* the right way to do it *        top.frames[list_frame].document.write( *              "<tr>" + *                "<td>" + prefillList[i+1] + ":  </td>" + *                "<td>" + *                  "<select>"  *        ) *        count--; *      } *      top.frames[list_frame].document.write( *                    "<option VALUE='"+prefillList[i+1]+"'>" + *                      prefillList[i+2] + *                    "</option>"  *      ) * * but because of bug 18479 we have to hack things by putting the * <select> and the first <option> into a single write statement as follows: */          top.frames[list_frame].document.write(                "<tr>" +                  "<td>" + prefillList[i+1] + ":  </td>" +                  "<td>" +                    "<select>" +                      "<option VALUE='"+prefillList[i+1]+"'>" +                        prefillList[i+2] +                      "</option>"           )          count--;        } else {          top.frames[list_frame].document.write(                      "<option VALUE='"+prefillList[i+1]+"'>" +                        prefillList[i+2] +                      "</option>"           )/* end of hack */        }        if(count == 0) {          top.frames[list_frame].document.write(                      "<option VALUE='"+prefillList[i+1]+"'>&lt;do not prefill&gt;</option>" +                    "</select><br/>" +                  "</td>" +                "</tr>"           )        }      }      top.frames[list_frame].document.write(              "</td>" +            "</tr>" +          "</table>" +        "</form>"      );      top.frames[list_frame].document.close();    };
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/063357464d52340bce76e1a923324a60d9ce5562/WalletPreview.js/clean/extensions/wallet/walletpreview/WalletPreview.js