|    
			
				12/11/2007, 10:25
			
			
			  | 
  |   |  |  |  Fecha de Ingreso: octubre-2007 Ubicación: Santiago ,Chile 
						Mensajes: 146
					 Antigüedad: 18 años Puntos: 0 |  | 
  |  Re: borrar tablas dinamicas  
  hola javierB , probe tu codigo y corre perfectamente , ahora cuando traspaso la funcion a mi codigo no funciona, no se por que, pienso que debe ser por que el boton que  llama a esta funcion tambien es dinamico,pues cambie el event por un obj this y no paso nada, es mi unika explicacion , a continuacion te dejo las funciones que generan la row y  ponen  el boton y otras variables en las <td>
 funcion que  coloca la row
 
 function copyRow(content,Trow) {
 var cnt = 0;
 for (; cnt < content.length; cnt++) {
 appendCell(Trow, content[cnt].innerHTML);
 }
 }
 
 function appendCell(Trow, txt) {
 var newCell = Trow.insertCell(Trow.cells.length);
 newCell.innerHTML = txt ;
 
 }
 
 
 
 funcion ke koloca el botn dinamico y otras variables dinamicas
 
 function insert(content,Trow,z) {
 
 
 var cnt = 0;
 for (; cnt < content.length-1; cnt++) {
 
 
 if (cnt==0) {
 str ='<td>'+z[0]+'</td>';}
 if (cnt==1) {
 str ='<td>'+z[1]+'</td>';}
 
 if (cnt==2) {
 str ='<td><input type="button"  value="-" onClick="removeLastRow(event)" > </td>';}
 
 appendCell(Trow, str);
 }
 
 }
 como te dije recien probe tu codigo pero no me resulto pero no se por que si me pudieras ayudar estaria muy agradecido  :D
   Última edición por rezocrew; 12/11/2007 a las 10:33
     |