EastCoastRider
Vendor
I have an education test page that calculates the paper score with JS. If the user fails to make a certain grade they get a message and if they succeed they get transfered to a printable certificate.
if(result<80){
alert("Sorry, you failed to meet the requirements so you will need to try the test again. If you continue to have trouble you may have to repeat the video program")
}
else if (result >=80) {
alert("Congratulations!")
}
}
The above code works. The code below doesn't.
if(result<80){
alert("Sorry, you failed to meet the requirements so you will need to try the test again. If you continue to have trouble you may have to repeat the video program")
}
else if (result >=80) {
document.forms.test.submit();
}
}
Funny thing is that it works fine on another page for a different course. Any suggestions? It sure has me stumped. I am not an IT person and am self-taught with everything I do but I am building some e-learning packages as part of a consulting practice.
if(result<80){
alert("Sorry, you failed to meet the requirements so you will need to try the test again. If you continue to have trouble you may have to repeat the video program")
}
else if (result >=80) {
alert("Congratulations!")
}
}
The above code works. The code below doesn't.
if(result<80){
alert("Sorry, you failed to meet the requirements so you will need to try the test again. If you continue to have trouble you may have to repeat the video program")
}
else if (result >=80) {
document.forms.test.submit();
}
}
Funny thing is that it works fine on another page for a different course. Any suggestions? It sure has me stumped. I am not an IT person and am self-taught with everything I do but I am building some e-learning packages as part of a consulting practice.