Karin: Out of memory Fehler bei Funktionsangabe

Beitrag lesen

Es funktioniert übrigens auch mit Harlequins Variante (da hatte er recht...). Du hast immer noch das "onclick" in Deinem Code. Du brauchst "onchange"!

:-( immer noch nichts...

Ich post nochmal den ganzen teil, vill. hab ich ja sonst noch fehler drinn:

<td id="BildInput"><input type="file" name="bild[]" size="8" onChange="addFileInput()"><br>


> Da kann ja noch nix schief gehen...  
>   
> ~~~javascript
  

> function addFileInput()  
>    {  
>     table = document.getElementById("BildInput");  
>   
>     inputField = document.createElement('input');  
>     inputField.setAttribute('name', 'bild[]');  
>     inputField.setAttribute('type', 'file');  
>     inputField.setAttribute('size', '8');  
>     inputField.onClick = addFileInput;  
>   
>     table.appendChild(document.createElement('br'));  
>     table.appendChild(inputField);  
>    }  
> 

irgend wo klemmts noch..
ich hab auch schon die Variante
inputField.onchange = function { addFileInput(); }; gesehen - auch das futzt ned :-(