var intRows=1;
  function insertContainer(values)
  {
     var tblDetailbody = document.all.item("tblContainerList");
     myrow=tblDetailbody.insertRow(-1);     insertStr = "<input type='text' name='Ctnr_No' value="+values[0]+" readonly>";
     mycol=myrow.insertCell();
     mycol.innerHTML= insertStr;
     mycol.className="date_table";     insertStr = "<input type='text' name='Ctnr_Size' value="+values[1]+" readonly>";
     mycol=myrow.insertCell();
     mycol.innerHTML= insertStr;
     mycol.className="date_table";     insertStr = "<input  type='text' name='Cargo_Name' value="+"<%=new String(JYNoticeBean.getProduct().getBytes("ISO8859_1"),"gb2312")%>"+" readonly>";
     mycol=myrow.insertCell();
     mycol.innerHTML= insertStr;
     mycol.className="date_table";     insertStr = "<input  type='text' name='Seal_No' value='23' readonly>";
     mycol=myrow.insertCell();
     mycol.innerHTML= insertStr;
     mycol.className="date_table";     insertStr = "<input  type = 'text' name='Ctnr_Owner' value="+values[2]+" readonly>";
     mycol=myrow.insertCell();
     mycol.innerHTML= insertStr;
     mycol.className="date_table";
     mycol.align="center";     intRows++;
  }  function insertRow(tableID,insertStr)
  {
      var tblDetailbody = document.all.item(tableID);
      myrow=tblDetailbody.insertRow(-1);
      mycol=myrow.insertCell();
      mycol.innerHTML= insertStr;
  }

解决方案 »

  1.   

    在TABLE中加入
     <tbody id="tblContainerList" name="tblContainerList"></tbody>
              <tr>
                <td class="date_table" align="right" colspan="11">&nbsp;</td>
              </tr>
      

  2.   

    我有一个好方法,想知道mail:[email protected]
      

  3.   

    lifeis(我要把你弄到手★★★★★) 
    我会试的.谢谢!waterhaha(waterhaha):
    不用了,谢谢!
      

  4.   

    lifeis(我要把你弄到手★★★★★):
    我试过了,it works!
    thank you very much!