PDA

View Full Version : for loop


chrismiceli
11-09-2002, 04:49 PM
what is wrong with this for loop?

for (i=0, i >= document.user.weaps.length, ++i) {
document.user.blah[i].text = parent.stats.hello[i];
}

i am trying to make it generate a drop down box. the error in mozilla is this
Error: missing ; after for-loop initializer
Source File: file:///home/cpu/documents/scripts/blah.js
Line: 3, Column: 46
Source Code:
for (i=0, i >= document.user.blah.length, ++i) {

Carl
11-09-2002, 04:58 PM
I believe its

for (i=0; i >= document.user.weaps.lengthl; ++i) {

chrismiceli
11-09-2002, 05:13 PM
thanx, that was it.