Bonjour,
Je cherche à télécharger le module activeX pour FireFox 2.0. Je ne trouve rien (j'ai trouvé pour FF1.5). C'est pour un intranet.
En fait j'ai crée un objet javascript dont voici le code :
function getinfo(divid)
{/* divid sera l'id dans laquelle on affichera les info */
this.id=divid;
var WShnetwork = new ActiveXObject('WScript.Network');
this.utilisateur = WShnetwork.UserName;
this.poste = WShnetwork.ComputerName;
this.domaine = WShnetwork.UserDomain;
this.table="<table><td><tr>";
this.table+=this.utilisateur;
this.table+="</tr></td><td><tr>";
this.table+=this.poste;
this.table+="</tr></td><td><tr>";
this.table+=this.domaine;
this.table+="</tr></td><td><tr></table>";
}
getinfo.prototype ={
affinfo: function() {
document.getElementById(this.divid).innerHTML=this.table;
}
}
Cet objet devrait permettre de renvoyer le username etc..
J'ai une erreur firebug qui dit 'ActiveXObject is not defined'..je suppose que c'est parcequ'il me manque ce fameux plug-in..
Merci de votre aide.
JP
