Fotiman

msg:4440526 | 3:32 pm on Apr 13, 2012 (gmt 0) |
while(i < '36'){ you're treating i as a string there. Try this: while(i < 36){
|
Jeru

msg:4440569 | 5:26 pm on Apr 13, 2012 (gmt 0) |
Thanks Fontiman, can't believe I missed that one... I still have problems accessing the field though. When trying to access the fields like this:
document.uSearch.Squery.value = document. aSearch.cF|i|.value; I am getting: document.aSearch.cF|i| is undefined. Tried all kind of variations, but to no avail. I know the fields exist. The | represent square brackets, I can't post with square brackets here. Any ideas?
|
Fotiman

msg:4440630 | 8:07 pm on Apr 13, 2012 (gmt 0) |
Where is document.aSearch.cF defined? I assume aSearch is a form element, but what is cF?
|
Jeru

msg:4440750 | 6:28 am on Apr 14, 2012 (gmt 0) |
The fieldnames in the form (named aSearch) are named and id-ed cF1, cF2, cF3 etc.
|
Jeru

msg:4440755 | 6:36 am on Apr 14, 2012 (gmt 0) |
Just realised my approach was all wrong, Javascript is pretty new to me. I am now using: document.getElementById('cF'+i).value; And that works. Thanks Fotiman for your support!
|
Fotiman

msg:4440928 | 9:09 pm on Apr 14, 2012 (gmt 0) |
Glad you got it sorted. :-)
|
|