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) {
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) {