Hello,
When I start it seems to me that it is quit simple but now after a few hours I'am posting a thread.
I've two different frames and I want dynamically read the value's with a for loop in a different frame by object name. See my code example:
this works.
Now I want to make the field name (afkorting) dynamically
This construction isn't working. The variable strName gets the name of the object (i.e. afkorting) but the alert doesn't work.
Has somebody an idea what I'am doing wrong?
Thanks in advance,
Nico
When I start it seems to me that it is quit simple but now after a few hours I'am posting a thread.
I've two different frames and I want dynamically read the value's with a for loop in a different frame by object name. See my code example:
Code:
alert(top.frames['hiddenframe'].contexthiddenform.afkorting.value);
Now I want to make the field name (afkorting) dynamically
Code:
strName = (top.frames['hiddenframe'].document.contexthiddenform.elements[i].name);
alert(top.frames['hiddenframe'].document.contexthiddenform. + strName + .value);
Has somebody an idea what I'am doing wrong?
Thanks in advance,
Nico