Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/07/2008, 13:42
Suyta
(Desactivado)
 
Fecha de Ingreso: septiembre-2004
Mensajes: 360
Antigüedad: 19 años, 7 meses
Puntos: 1
Actualizar registro y mostrar nuevo contenido

Hola chicos
Necesito actualizar un registro y a continuación mostrar el nuevo contenido de la tabla... se puede ?
Yo llego hasta la actualización, necesito ayuda para la función que mostraría el nuevo contenido.
Tengo esto:
Código PHP:
<script type="text/javascript">
function nuevoAjax(){
    var xmlhttp=false;
    try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
    try {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
    xmlhttp = false;
    }
    }

    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
    }

function borraReg(cual){
ajax=nuevoAjax();
ajax.open("GET", "remove.php?cn="+cual,true);
ajax.send(null)
}
</script>


<tr>
  <td colspan="2" width="494"><br><span style="background-color: #EFEFEF"><b><font size="2" font color="#OOOOOO"><b>Case Number: </b>
<?
  
echo $casenumber."&nbsp&nbsp<input type=hidden name='casenumber' value='$casenumber'><input type='image' src='image/del.gif' width='22' height='15' align='absbottom' name='a' onclick='borraReg\"".$casenumber."\")'></td></tr>";
Trabaja bien pero para ver el nuevo contenido tengo que cargar nuevamente la página.
Graciasssssss