janestarz: (Default)
[personal profile] janestarz
Darnit! I’m scripting TommyCee’s test and there’s an error in my Javascript. But I can’t find it! I just copied working javascript and altered text and questions, but now it’s not working anymore. *Growl* And I have read the thing over and over and over again (and with sentences like “for (i = 0; i < f.alien.length; i++) if (f.alien[i].checked) value = f.alien[i].value;” that’s no picknick) but I…argh!
(deleted comment)

Date: 2002-07-16 04:18 am (UTC)
From: [identity profile] janestarz.livejournal.com
I already found the bug in my JavaScript: I named one of the questions 'else' so in the Javascript I used a sentence saying:

for (i = 0; i < f.else.length; i++) if (f.else[i].checked) value = f.else[i].value;

And 'else' is a part of Javascript. You can't use 'else' in your text because your Javascript will plunge nose-first to the ground. I once used the word "recipe's" and the ' is also a part of the script. That took me 3 hours to find.

But with Dreamweaver ready for use at school I could use the 'debug html' tool to fix it. Otherwise I doubt I would have found the error. It'll be up at my site soon.

Profile

janestarz: (Default)
janestarz

April 2026

S M T W T F S
    1234
5 678 910 11
12 1314 15 161718
19202122232425
2627282930  

Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 17th, 2026 11:35 pm
Powered by Dreamwidth Studios