ciao a tutti ho adattato questo script alle mie esigenze e tutto sembra funzionare, solo che al momento di inviare il form via ajax le variabili risultano essere tutte undefined anche se i campi sono pieni
infatti se guardo il file sorgente dopo aver creato i vari campi il codice dei nuovi input non è presente
da cosa può dipendere?
codice:
<script language="JavaScript" type="text/javascript">
<!--
var num=1;

function accoda(){if(num==10) {return false;}
		else{
	if(document.createElement && document.getElementById && document.getElementsByTagName) {
		// crea elementi
		var oTr=document.createElement("TR");
		var oTd=document.createElement("TD");
		var oTd1=document.createElement("TD");
		var oTd2=document.createElement("DIV");
		var oField=document.createElement("INPUT");
		var oText=document.createTextNode(num+" ");
		
		// setta attributi
		oTd2.setAttribute("id","object");
		oTd2.setAttribute("style","background-color:#FC9123");
		oTd2.setAttribute("align","left");
  		oField.setAttribute("type","text");
		oField.setAttribute("name","image"+num);
		oField.setAttribute("size","75");
		oTd2.setAttribute("class","style1");
		

		// appendi al relativo padre
		oTd2.appendChild(oText);
		oTd2.appendChild(oField);
		oTr.appendChild(oTd2);
		
		document.getElementById('tabella').getElementsByTagName('TBODY')[0].appendChild(oTr);

		// incrementa variabile globale
		
		num++
		}
	}
}

function rimuovi(){
	if(document.removeChild && document.getElementById && document.getElementsByTagName) {
		// se non e' la prima riga
		if(num>1){
			// riferimento al tbody
			var tb=document.getElementById('tabella').getElementsByTagName('TBODY')[0];
			// riferimento all' ultimo TR
			var lastTr=tb.getElementsByTagName('TR')[(tb.getElementsByTagName('TR').length)-1]
			// rimuovi
			tb.removeChild(lastTr);
			// decrementa variabile globale
			num--
		}
	}
}
//-->
</script>