Ver Mensaje Individual
  #5 (permalink)  
Antiguo 30/03/2008, 10:42
Avatar de caricatos
caricatos
Moderador
 
Fecha de Ingreso: abril-2002
Ubicación: Torremolinos (Málaga)
Mensajes: 19.607
Antigüedad: 22 años, 1 mes
Puntos: 1284
Re: añadir name="userfile[]" a script de http://the-stickman.com/ de upload multiple

Hola:

Has tenido el eterno problema del "copy & paste" sin revisar el código... es que dentro del atributo name has puesto un carácter de más (un ";")... ya que copias y pegas, voy a ponerte el código bueno:

Código:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>
	http://www.caricatos.net/probador
</title>

</head>
<body>

<form onsubmit="for (i = 0; i < this['userfile[]'].length; i++) this['userfile[]'][i].disabled = false" action="javascript: alert('Ok')" >


<input type="file" onchange="x=this.cloneNode(true); x['value'] = ''; this.parentNode.insertBefore(x, this.nextSibling); this.disabled = true;" name="userfile[]" />

<button type="submit"> enviar </button>

</form>

</body>
</html>
He cambiado el appendChild por un insertBefore como comenté anteriormente.

Saludos
__________________
Por favor:
No hagan preguntas de temas de foros en mensajes privados... no las respondo