Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/05/2006, 18:48
augusto_jaramil
 
Fecha de Ingreso: junio-2004
Ubicación: Ciudad de Panama
Mensajes: 551
Antigüedad: 19 años, 10 meses
Puntos: 8
Pregunta Puedo hacer esto con ajax?

Que tal amigos.... otra vez yo.

Sera posible hacer esto con ajax. La idea es que me haga un loop de text-box. Alguna idea?

El codigo que estoy utilizando es el siguiente:

Código PHP:
<body>
    <form name="clientForm" action="consul.php" method="post">
        <legend>Informacion de Clientes</legend>
        <table>
            <tr>
<?php
                
echo "<td>Nit :</td><td>Nombre :</td><td>Direccion :</td><td>Telefono :</td><td>Ciudad :</td><td>Clase :</td><td>Estado :</td><tr>";
                for (
$j=0$j<6$j++) {
                    echo 
"<td><input name='nit$j' id='nit$j' size='15' maxlength='14'></td>";
                    echo 
"<td><input name='nombre$j' id='nombre$j' size='15' maxlength='14'></td>";
                    echo 
"<td><input name='direccion$j' id='direccion$j' size='15' maxlength='14'></td>";
                    echo 
"<td><input name='telefono$j' id='telefono$j' size='15' maxlength='14'></td>";
                    echo 
"<td><input name='ciudad$j' id='ciudad$j' size='15' maxlength='14'></td>";
                    echo 
"<td><input name='clase$j' id='clase$j' size='15' maxlength='14'></td>";
                    echo 
"<td><input name='estado$j' id='estado$j' size='15' maxlength='14'></td></tr>";

                }
?>
        </table>    
    </form>
</body>
La idea es que registrando algun dato en el primer input text de cada fila me ponga los demas datos correpondientes al codigo digitado.

Sera que estoy perdido?

Mil gracias de antemano

Un Cordial Saludo