PHP - Ayuda con celda modifcada en tabla html

 
Vista:

Ayuda con celda modifcada en tabla html

Publicado por Oscar Meza (1 intervención) el 29/01/2015 22:54:28
Buenas Tardes

Amigos del foro, necesito de su ayuda, resulta que estoy modificando una celda de una tabla en html con javascript
remplaso en valor default de la celda y luego intento mandar a guardar los cambios, el cambio se ve pero el dato
en $row se mantiene con el inicial, como puedo enviar el segundo valor


JAVASCRIPT CON EL QUE MODIFICO

<script type="text/javascript">
function modifica() {
tab=document.getElementById('tabla');
for (i=0; ele=tab.getElementsByTagName('input')[i]; i++) {
if (ele.checked) edita(ele);
ele.checked = false;
}
}
function edita(obj) {
padre = obj.parentNode.parentNode;
celda = padre.getElementsByTagName('td')[8];
txt = celda.innerHTML;
celda.innerHTML = '';
inp = celda.appendChild(document.createElement('input'));
inp.value=txt;
inp.onblur = function() { this.parentNode.innerHTML = this.value }

}


</script>


COMO ENVIO LOS DATOS A GUARDAR HACIA OTRA PAGINA

echo '<td style="text-align:center" width="30"><a href="cargarpago.php?tCliente='.$v1.'&tNomclie='.$myCliente.'&tDocumento='.$row["DOCUMENTO"].'&tTipo='.$row["TIPO"].'&tFecha='.$row["FECHA"].'&tFecha_vence='.$row["FECHA_VENCE"].'&tMonto='.$row["MONTO"].'&tSaldo='.$row["SALDO"].'&tPayment='.$row["PAYMENT"].'" target="popup" onClick="window.open(this.href,\'this.target\',\'width=600,height=350,top=10,left=10,location=no\');return false"><img src="images/save.png" align="middle" width="35" heigth="10" boder="0"></td>';
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder