svp help me c tres tres urgent mon application marche avec IE et non pas avec firefox pourquoi?
ben jai developpe une petite application en html qui contient une evaluation (un ensebbles de QCM)
a chaque fois une page appelle ce javascript lors de son chargement c'est a dire (On Load)
function extraire() {
var ch=window.location.search.substring(1);
var pairs = ch.split("&");
for (var i=0;i<pairs.length;i++)
{
pos = pairs[i].indexOf('=');
if (pos >= 0)
{
argname = pairs[i].substring(0,pos);
value = pairs[i].substring(pos+1);
if(argname=="score")
{
this.form.score.value=value;
}
}
} this.form.score.focus();
}
</script>
sachant que score c 'est une zone texte qui recupere le score de l'exercice precedent a partie de l'url
quand on clique sur le button submit on appelle la fonction verifier qui permet de verifier les bonne reponse et ajoute le score:
function verifier()
{
if((this.form.checkbox1.checked==true ) && (this.form.checkbox3.checked==true) && (this.form.checkbox5.checked==true) && (this.form.checkbox8.checked==true)&& (this.form.checkbox10.checked==true) && (this.form.checkbox14.checked==true ) && (this.form.checkbox15.checked==true) && (this.form.checkbox17.checked==true)&& (this.form.checkbox16.checked==true)&& (this.form.a.value=="input") && (this.form.b.value=="data") && (this.form.c.value=="scanner") &&(this.form.d.value=="pointing") && (this.form.e.value=="monitor") && (this.form.f.value=="display") && (this.form.g.value=="speakers") && (this.form.h.value=="print") && (this.form.i.value=="disc drive") && (this.form.j.value=="read") && (this.form.k.value=="write") && (this.form.l.value=="cd drive") && (this.form.m.value=="cursor"))
{
val=this.form.score.value;
var s=parseInt(val)+1;
this.form.score.value=s;
alert("Right answer");}
else
{alert("Wrong answer");this.form.score.value=val;
}
}