[thelist] request JS help for quiz
Sharon F. Malone
sfmalo at 24caratdesign.com
Sun Jul 21 06:11:07 CDT 2002
Dear List:
I'm not so hot at Javascript and am trying to get a quiz to work using it. Keep getting this error. Wondered if someone could help?
This is the error message Netscape generates from the console:
JavaScript Error: [unknown origin]:
missing ; before statement.
line 34 char 18
.....^
JavaScript Error:
file:/E|/Sharon/Cheftrain/html/QuizExperiment.html, line 34:
ButtonGroup has no properties.
This is the error message EditPlus generates:
l. 34 char 18 'length' is null or not an object
Code: 0
This is the code:
function GetSelectedButton(ButtonGroup)
{
for (var x=0;x<ButtonGroup.length;x++)
if (ButtonGroup[x].checked) return x
return 0
}
It generates the error at the "x" to the left of <ButtonGroup.length;x++)
Best,
Sharon
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com
sfmalo at 24caratdesign.com
More information about the thelist
mailing list