Karin: Out of memory Fehler bei Funktionsangabe

Beitrag lesen

Hab's mal kurz probiert, bei mir (Firefox1.5) funktioniert's so:

  
    inputField.setAttribute('onChange', 'addFileInput()');  

:-( 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 :-(