vishalonne 12 Junior Poster in Training

Hi
Really this forum is great I got lots of help from here. So, I cam back with lots of expectation. I am using IE6 and FF3.6

Please see my code its plain HTML with Java Script. This code is generating row in table at Run time. But once I reach up 10 rows which I kept maximum limit after that even I Refresh the Browser and try to do same function its giving error in IE
Line: 31
Char: 6
Error: Invalid Argument
Code: 0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 <title>oemXtrade.com</title> 
<meta name="keywords" content="" /> 
<meta name="description" content="" />  
   <script  language="javascript"> 
	function createsize()
 	{ 		 		s_count=document.getElementById('si_count').value; 	sz_count=document.getElementById('size_count').value; 	
var tbl = document.getElementById('table2'); 		sz_count1=sz_count; 		
var count=document.getElementById('srno').value; 		if(s_count!=1) 	
{ 		
sz_count=parseInt(sz_count)+ parseInt(s_count)-1; 		}   		 
var lastRow = tbl.rows.length+1;   		 		for(i=lastRow;i>s_count+1;i--) 
{   		
tbl.deleteRow(i);   	
} 		   
for(i=sz_count1;i<=sz_count;i++)
{ 			
var j=parseInt(i)+1;
var oTR = tbl.insertRow(i); 			 			count=parseInt(count)+1;
var oC1TD = oTR.insertCell(0); 			oC1TD.innerHTML = count; 			oC1TD.width="30"; 			oC1TD.align="left"; 			oC1TD.valign="top"; 			 		
var oC2TD = oTR.insertCell(1); 			oC2TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' size='2' align='center'>"; 			 			oC2TD.width="50";
oC2TD.align="left";
oC2TD.valign="top"; 	
var oC3TD = oTR.insertCell(2); 			oC3TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>---Select--</option>"+"</select>"; 			 			oC3TD.width="88"; 			oC3TD.align="left"; 			oC3TD.valign="top";	 		 		 		
var oC4TD = oTR.insertCell(3); 			oC4TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' align='left' size='17'>"; 			 			oC4TD.width="103";
oC4TD.align="left";
oC4TD.valign="top";
var oC5TD = oTR.insertCell(4); 			//oC2TD.align="left"; 
oC5TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>---Select--</option>"+"</select>"; 			 			oC5TD.width="50"; 			oC5TD.align="left"; 			//oC5TD.valign="top";	 
var oC6TD = oTR.insertCell(5); 			oC6TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' align='left' size='6'>";
oC6TD.width="70";
oC6TD.align="left";
oC6TD.valign="top";
var oC7TD = oTR.insertCell(6); 			oC7TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' align='left' size='4'>";
oC7TD.width="50"; 
oC7TD.align="left";
oC7TD.valign="top";
var oC8TD = oTR.insertCell(7); 		 			oC8TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>$US</option><option value='test'>$EURO</option>"+"</select>";
oC8TD.width="65"; 			oC8TD.align="left"; 			
oC8TD.valign="top";	 			 			 
var oC9TD = oTR.insertCell(8); 			oC9TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' align='left' size='7'>"; 			 			
oC9TD.width="65"; 			oC9TD.align="left"; 			
oC9TD.valign="top";
var oC10TD = oTR.insertCell(9); 			 			oC10TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>BULK,BR</option><option value='test'>BULK,ORIG</option>"+"</select>"; 			
oC10TD.width="75"; 			
oC10TD.align="left"; 			
oC10TD.valign="top"; 
var oC11TD = oTR.insertCell(10); 			 			oC11TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>DIRECT  (DM)</option>"+"</select>"; 			
oC11TD.width="110"; 			
oC11TD.align="left"; 			
oC11TD.valign="top"; 	
var oC12TD = oTR.insertCell(11); 			oC12TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' align='left' size='6'>"; 			
oC12TD.width="55"; 			
oC12TD.align="left"; 			
oC12TD.valign="top";
var oC13TD = oTR.insertCell(12); 			 			oC13TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>Y</option>"+"</select>"; 			
oC13TD.width="40"; 			oC13TD.align="left"; 			
oC5TD.valign="top";
var oC14TD = oTR.insertCell(13); 			 			oC14TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>Y</option>"+"</select>"; 			oC14TD.width="40"; 			oC14TD.align="left"; 			oC14TD.valign="top"; 			 			 			var oC15TD = oTR.insertCell(14); 			//oC2TD.align="left"; 			oC15TD.innerHTML = "<select name='product_image"+j+"' id='product_image"+j+"'>"+"<option value='test'>---Select--</option>"+"</select>"; 			//oC5TD.width="50"; 			oC15TD.align="left"; 			//oC5TD.valign="top"; 			 			var oC16TD = oTR.insertCell(15); 			oC16TD.innerHTML = "<input name='angle"+ j+"' type='text' id='angle"+ j+"' value='' align='left' size='4'>"; 			oC16TD.width="55"; 			oC16TD.align="left"; 			oC16TD.valign="top"; 			 			 	} 		 		document.getElementById('size_count').value=i; 		document.getElementById('srno').value=count; 		} 		
</script>
</head> 
<body> 
<!-- start header --> 
<div id="main"> 
<div id="header"> 
<div id="logoarea"> 
<div id="logo">
</div> 
</div> 
<div id="menu">
<ul>
<li>
<a href="oemxtrade.html">OemXtrade</a>
</li>
</ul>
</div>
 </div>
 <div id="cantaner">
   <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">
<div id="path">&nbsp;
<img src="images/img13.gif" alt="" width="4" height="7" />&nbsp;
<span class="linkpath">ADD EXCESS INVENTORY
</span>&nbsp;
<img src="images/img13.gif" alt="" width="4" height="7" />
&nbsp;
<span class="linkpath">Create New Excess Part List  </span></div>
</td>     
</tr>     
<tr>       
<td align="left" valign="top">&nbsp;</td>     
</tr>         
<tr>       
<td align="left" valign="top" class="formheadtext">
<p>Create New Excess Part List (Manually) <br />           <span class="formtext">Need Help With this Tool </span>
</p>         
<div class="formtext" id="helpbox">           <p>&nbsp;</p>           
<p><div id="help">             
<ol>                 
<li>Click on the "Parts List/BOM Manager" link.</li>
<li>Click on the "Create New Parts List       (Manually)" link.</li> 
<li><span class="headingtext">To add items, enter a DK part number or Mfg part       number, customer reference number (optional), quantity (qty), and press       "Enter" or click the "Add" button.</span></li>               <li><span class="headingtext">Note: if multiple qtys are desired, enter qty in 2 and        3 as well.</span></li>               
<li><span class="headingtext">Once all items are entered or added click on the       "Create Order," "Create BOM," or "Create       Quote" button to &nbsp;create an Order, BOM, or Quote.</span></li>   
          </ol>    
       </div>
</p>
<br />        
   </div>            
     <p>&nbsp;</p>
</td>
     </tr>  
   <tr>       <td align="center" valign="top" class="">&nbsp;&nbsp;<div align="center">
         <div id="box2">         
  <div align="left"></div>  
         <table width="1102" border="0" cellpadding="0" cellspacing="0" id="back2top">      
       <tr>      
         <td width="35" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>S.no</strong></div></td>  
  <td width="71" align="left" valign="top" class="tdcolour">
<p align="center" class="headingtext">Sell Part no. </p></td>     
 <td width="103" align="left" valign="top" class="tdcolour">
<div align="center" class="headingtext"><strong>Category</strong>
</div></td>               
<td width="77" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>Manu part</strong></div></td>        
<td width="103" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>Manu name </strong></div></td>
<td width="50" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>Quantity</strong></div></td>
<td width="35" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>SPQ</strong></div></td>
<td width="75" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext">Currency</div>
</td>
<td width="53" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>Pur price</strong></div></td>   
            <td width="104" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong> Device&nbsp;Package </strong></div></td> 
              <td width="118" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>Package&nbsp;type</strong></div></td>               <td width="32" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>Date&nbsp;code </strong></div></td> 
              <td width="51" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>ROHS</strong></div></td>    
           <td width="51" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext"><strong>COC</strong></div></td>      
         <td width="103" align="left" valign="top" class="tdcolour"><p align="center" class="headingtext">Procure&nbsp;souce</p> </td>      
         <td width="136" align="left" valign="top" class="tdcolour"><div align="center" class="headingtext">                   <p><strong>STK&nbsp;Loc</p>               </div></td>   
          </tr>        
     <tr>       
       <td align="left" valign="top" class="td"><strong>1</strong></td>   
            <td align="left" valign="top" class="td"><input name="si_count" type="text" id="si_count" value="1"  size="3"></td>      
         <td align="left" valign="top" class="td"><select name="select">                   <option>---Select--</option>               </select></td>    
           <td align="left" valign="top" class="td"><input name="textfield42" type="text" size="20" /></td>        
       <td align="left" valign="top" class="td"><select name="select2">                   <option>---Select--</option>               </select></td>               <td class="td"><input name="textfield422" type="text" size="7" /></td>               <td class="td"><input name="textfield423" type="text" size="5" /></td>       
        <td class="td"><select name="select8">                   <option>US $</option>                   <option>EURO</option>                   <option>INR</option>         
      </select>
</td>              
 <td class="td"><input name="textfield52" type="text" size="8" /></td>       
        <td class="td"><select name="select3">                   <option>BULK,ORIG</option>                   <option>BULK,BR</option>                   <option>T&R,ORIG</option>                   <option>T&R, BR</option>   
            </select>
</td>     
          <td class="td"><select name="select4">                   <option selected="selected">DIRECT (DM)</option>                   <option>DISTI (DI)</option>                   <option>DEALER (DR)</option>                   <option>OTHER (OT)</option>               </select></td>               <td class="td"><input name="textfield424" type="text" size="4" /></td>               <td align="left" valign="top" class="td"><select name="select5">                   <option>Y</option>                   <option>N</option>    
      </select>
</td>               
<td class="td"><select name="select6">                   <option>Y</option>                   <option>N</option>               </select>
</td>               
<td class="td"><select name="select7">                   <option>---Select--</option>               </select></td>               <td class="td"><input name="textfield522" type="text" size="5" /></td>
</tr> 
<tr>
<table width="100%" cellspacing="0" cellpadding="0" id="table2" align="left" border="1">
<tr>
</tr>
<tr>
</tr>
</table>
</tr>
<tr>
<td colspan="16" align="left" valign="top" class="td">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;                   <input type="submit" name="Submit2" value="Add another part" onClick="createsize();"/>
<input type="hidden" name="srno" id="srno" value="1">
<input type="hidden" name="size_count" id="size_count" value="1">&nbsp;&nbsp;&nbsp;
<input type="submit" name="Submit" value="Send Part List"  />
<a href="excess_unique_name.html" class="logintext">link</a></td>
</tr>           </table> 	
	          </div>      
 </div>
</td>   
  </tr>     
<tr>      
 <td align="left" valign="top"></td>   
  </tr> 
    <tr>     
  <td align="center" valign="top"><div style="padding-right:10px"> 
	    <div align="right" class="normaltext"><a href="oemXtrade_signin.html"><strong><img src="images/img13left.gif" alt="" border="0" width="4" height="7" />&nbsp;Back to Add Excess Inventory / Back to Search Page </strong></a><strong> </strong>
</div> 	
  </div>  
      </div></div> </div>   <!-- end header --> <!-- start page --><!-- end page --> <!-- start footer --> <!-- end footer --> </body> </html>

Thank you in advance please advice me

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.