Bonjour, dan mon script tous me parait normale mais il y a quand même un problème il n'y a rien qui s'affiche et je voie cette erreur dnas l'addon de firefox :
Erreur : ActiveXObject is not defined
Voici le code :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<SCRIPT LANGUAGE="JavaScript">
var fso,fso2, folder, f1, fc, s, sep;
fso = new ActiveXObject("Scripting.FileSystemObject");
folder = fso.GetFolder("music");
fc = new Enumerator(folder.files);
s += "<br>";
sep = "";
for (; !fc.atEnd(); fc.moveNext())
{
fso2 = new ActiveXObject("Scripting.FileSystemObject");
f1 = fso2.getFile(fc.item);
document.write(folder.Name);
document.write("<br />");
}
</script>
</body>
</html>
En espérant que vous puissiez m'aider :)
Configuration: Windows XP
Firefox 3.0