[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

elements array



Hello,

my question is:
I have some Data stored in cookies and want to put it in a hidden Form to 
submit it. To make the Code as short as possible, I would like to access 
the hidden fields like that:
document.FormName.elements[index].value = MyCookieData;
So I would be able to do that in a loop!
With
Something = document.FormName.elements[index].value;
it works fine, but the first thing dont! I think that is because the 
elements array is "read only", but I think there should be a way...

By now, I have to write things like:
document.FormName.HiddenName1.value = MyCookieData;
document.FormName.HiddenName2.value = MyCookieData;
document.FormName.HiddenName3.value = MyCookieData;
a.s.o., and that is not very nice I think!
Someone can help?
Thanks
Olaf
_____________________________________________________________________
Olaf Walkowiak, Suedeseestr.14, D-45145 Essen, Phone:+49-201-604594
si0015@aixrs1.hrz.uni-essen.de			OlafWal@aol.com
URL:http://www.bikeconn.de/com/bikeconn/hotel/olaf
_____________________________________________________________________
Request PGP public key by E-Mail
PGP fingerprint: 55 BF 58 7A E9 DC FF 28 33 31 A6 B8 FB A1 28 A6

--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.