11496 sujets

JavaScript, DOM et API Web HTML5

Bonjour,
J'ai beaucoup de mal avec le javascript et là je bloque sur une partie d'un code js utilisé pour un formulaire. en fait, je n'arrive pas à comprendre ce qu'on peut obtenir dans l'input la (les) valeur(s) et le (les) name(s).
Voici la partie du code:
self.tFormManager={
catalogue:[["Intelligence",[[1043,"livre intelligence",[[147,"auto-ad",0.00],[146,"manuel",0.00]],[[145,"standard",0.00]]]]],["Orientation",[[1044,"livre orientation",[[149,"manuel",0.00],[150,"auto-ad",0.00]],[[148,"standard",0.00]]]]],["Res Hum",[[1035,"livre motivation",[[121,"manuel",0.00],[122,"auto-ad",0.00]],[[141,"complet",0.00]]],[1045,"livre prof",[[153,"manuelle",0.00],[154,"auto-ad",0.00]],[[152,"Rapport",0.00]]]]]],
	livresIndex:false,
	assignFrm:false,
	tSel:false,
	sSel:false,
	rChks:false,
	totOut:false,
	tOut:false,
	sOut:false,
	sCOut:false,
	rOut:false,
	sbmBtt:false,
	tSelName:"idLivre",
	sSelName:"idPrestationSomme",
	rChksName:"idsPrestationReport",
	nullField: " -- ",
	
	Init:function(){
		this.assignFrm=document.getElementById("atributionLivreForm");
		this.totOut=document.getElementById("totOut");
		this.tOut=document.getElementById("tOut");
		this.sOut=document.getElementById("sOut");
		this.sCOut=document.getElementById("sCOut");
		this.rOut=document.getElementById("rOut");
		this.sbmBtt=document.getElementById("sbmBtt");
		this.livresIndex=new Array();
		this.tOut.innerHTML=this.GetLivresSelectHtml();
		this.tSel=this.assignFrm.elements[this.tSelName];
		if(this.tSel.type=="hidden"){
			this.OnLivreChange();
		}else{
			this.tSel.onchange=function(){
				self.tFormManager.OnLivreChange();
			};
		}
		this.sbmBtt.onclick=function(){
			self.tFormManager.Submit();
		};
		this.WriteSomme();
		this.WriteReport();
		this.WriteTotale();
		this.CheckSubmit();
	},
	GetLivresSelectHtml:function(){
		var o=(this.catalogue.length>1);
		if(!o && this.catalogue[0][1].length==1 ){
			this.livresIndex[0]=this.catalogue[0][1][0];
			return "<input type=\"hidden\" value=\""+this.livresIndex[0][0]+"\" name=\""+this.tSelName+"\" />"+this.livresIndex[0][1];
		}

A quoi peut bien ressembler l'input? J'ai pensé à un exemple du type:
<input type="hidden" value="1043" name="tOut">
<input type="hidden" value="0.00" name="sCOut"> etc...
Mais apparemment c'est pas ça. Pouvez-vous m'aider s'il vous plaît?