Bonjour,
je cherche à créer un objet qui a un tableau comme propriété (oui c'est confus).
example :
Et voila la réponse de firebug (Il a sûrement raison
).
Je pense que c'est possible car il y a des choses comme ceci qui existent.
Merci.
A+
Modifié par sieurVLD (23 Jan 2007 - 10:50)
je cherche à créer un objet qui a un tableau comme propriété (oui c'est confus).
example :
function belObjet(d){
this.prenom = 'titi';
this.tab = new Array();
this.tab[0].nom = 'toto';
this.tab[1].nom = 'tata';
}
monOb = belObjet();
Et voila la réponse de firebug (Il a sûrement raison

this.tab[0] has no properties
Je pense que c'est possible car il y a des choses comme ceci qui existent.
d.getElementsByTagName('nom')[0].firstChild.nodeValue
Merci.
A+
Modifié par sieurVLD (23 Jan 2007 - 10:50)