Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/08/2010, 15:12
arieltolosa
 
Fecha de Ingreso: julio-2010
Mensajes: 7
Antigüedad: 13 años, 9 meses
Puntos: 0
Problema jquery form en ie

Bueno gente luego de resolver todos los problemas q me ocasionan actualizar la pagina a ajax con la libreria jquery el maldito internet explorer no me deja funcionar el script en chrome en opera y en firefox a la perfección en ie me dice según el programa iebug q no esta definido mid fijense q ese input esta dentro de un echo en php echo '
<form action="' , $_SERVER['PHP_SELF'] , '?action=post" method="post" id="Comentario">
<p style="margin:0px;">
<input type="hidden" name="mid" id="mid" value="' , $_GET['id'] , '" />
</p>' , "\n";

Código HTML:
<div class="comments-form">	

<h3 id="respond">Comentarios:</h3>

<input type="hidden" name="mid" id="mid" value="' , $_GET['id'] , '" />
<p><input id="name" name="name" value="veneno" name="author"  type="text" class="formid" readonly="readonly" /> <label for="comment-name">Tu nombre</label></p>
<p><input id="email" name="email" value="" type="text" class="formemail" /> <label for="comment-name">Tu correo <strong class="required">(Es opcional)</strong></label></p>
<p><input id="usuarios_pass" name="usuarios_pass" type="password" size="25"/>								
<p><textarea id="message" name="message" cols="50" rows="8"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" class="button" value="Enviar Comentario" />
<input type="hidden" name="submit" value="16" />

</div>	



</form>
		<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js"></script>    
  

<script language="javascript">
$(document).ready(function() {
   // Esta primera parte crea un loader no es necesaria
    $().ajaxStart(function() {
        $('#emptyData').show();
        $('#emptyData').hide();
    }).ajaxStop(function() {
        $('#emptyData').hide();
        $('#emptyData').fadeIn('slow');
    });
   // Interceptamos el evento submit
		$('#Comentario').submit(function() {
  // Enviamos el formulario usando AJAX
        $.ajax({
            type: 'POST',
            url: $(this).attr('action'),
            data: $(this).serialize(),
            // Mostramos un mensaje con la respuesta de PHP
            success: function(data) {

            }
        })   
  // FIN Actualizo el tablon de noticia
		var id = document.getElementById(mid);
var v = document.getElementById('mid').value;
var url = "index2.php?action=fullnews&showcomments=1";
url = url+"&id="+v;

		        $.get(url, function(data) { 
		         $("#index2").html(data) 
		    });     
  // FIN Actualizo el tablon de noticia
        return false;
    }); 
})  
</script>



a ver si alguien me ayuda a resolverlo :S ya no se mas q probar