je pense que tu as tout simplement un problème d'instanciation... lorqsue tu essaye d'appeler l'obje il nexiste pas encore ...
1 2 3 4 5 6
|
function editListe(liste) {
var editlst = open("editListe.xul", "ajout de liste de diffusion", "width=400, height=100, directories=no, location=no, menubar=no, status=no, toolbar=no left=" + ((screen.width - 400)/2) + ",top=" + ((screen.height - 150)/2))
alert( editlst.getElementById('which') )
//editlst.getElementById('which').value = "Veuillez saisir un nouveau nom pour la liste "+liste;
} |
que te retourne l'alert ? [object] ? ou ça plante ou undefined ?
en plus ce n'est pas
editlst.getElementById('which')
mais
editlst.document.getElementById('which')
Partager