Ver Mensaje Individual
  #6 (permalink)  
Antiguo 17/03/2012, 06:09
Avatar de Naahuel
Naahuel
 
Fecha de Ingreso: marzo-2011
Ubicación: localhost
Mensajes: 796
Antigüedad: 13 años, 1 mes
Puntos: 192
Respuesta: No me funciona .click() en chrome

Ah, entonces lo que querés es disparar el evento? A mi en Chrome me funciona bien eso:

Código HTML:
Ver original
  1. <!doctype html>
  2.     <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
  3.     <script type="text/javascript">
  4.         $(function(){
  5.             $('.cargar-archivo').click(function(event){
  6.                 $('input[type="file"]').click();
  7.             });
  8.         });
  9.     </script>
  10.     <title>Click Input File</title>
  11. </head>
  12.     <input type="file" />
  13.     <p><button class="cargar-archivo" href="http://www.google.com">Abrir archivo</button></p>
  14. </body>
  15. </html>

¿A vos te funciona? Lo puedo probar hasta en IE6 sin problemas.
__________________
nahueljose.com.ar