J'ai bulid une classe js qui est d'avoir le paramètre de contrôle (contrôle html), je tente d'ajouter dinamicly onchange événement au contrôle, mais j'ai l'erreur folowing:d'erreur: htmlfile: Non implémenté
htmlfile: non implémenté
//-------------- the code
Contrl.prototype.AddChangeEvent = function() {
var element = this.docID;
var fn = function onChange(element) {
// action
};
if (this.tag == "input" && (this.el.type == "radio")) {
this.el.onclick = fn(element); // there i have the error
}
else {
this.el.onchange = fn(element); // there i have the error
}
}
Non seulement appeler mais lier à this.el.onclick – user368038
@haroldis: Non, vous n'êtes pas le lier. Vous êtes en train de le lier, mais vous ne réussissez pas. – SLaks