Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/09/2012, 22:04
hernan2212
 
Fecha de Ingreso: marzo-2012
Ubicación: Rosario
Mensajes: 108
Antigüedad: 12 años, 1 mes
Puntos: 0
volver script dinamico para while php

Hola, como andan?
tengo un problemita con un script para hacerlo funcionar en un while php
Aca el script:

Código HTML:
Ver original
  1. <script language="javascript">
  2. $(document).ready(function() {
  3.     $().ajaxStart(function() {
  4.         $('#loading').show();
  5.         $('#result').show();
  6.     }).ajaxStop(function() {
  7.         $('#loading').hide();
  8.         $('#result').fadeIn('slow');
  9.     });
  10.     $('#form, #fat, #fo3').submit(function() {
  11.         $.ajax({
  12.             type: 'POST',
  13.             url: $(this).attr('action'),
  14.             data: $(this).serialize(),
  15.             success: function(data) {
  16.                 $('#result').html(data);
  17.  
  18.             }
  19.         })
  20.        
  21.         return false;
  22.     });
  23. })  
a la hora de llamarlo desde el while php de esta forma

Código PHP:
while ($registro=mysql_fetch_array($tabla)){ ............
<
form..........
<
div id=result></div>......
</
form>

Luego de enviar el form me sale unicamente el div oculto del primer registro de los demas no hace nada.
Desde ya muchas gracias por la ayuda
Saludos