I know there's an easy answer to this which is escaping me:
--------------------------------------------------------------------------
-----------------------
I have clickable thumb images which pass the image info to a window open script
to display a larger version of the image along with a description of the image.
The image info comes from the image element; the description string is in a
hidden form var with the same name as the image element.
// example:
<a... <image name='imagename1' ... >/a>
<input type='hidden' name='imagename1' value='image descriptor1' .....
Problem:
inserting the image name argument into document.myform.imagename1.value
to get the value of the hidden field yields a string, not the value of that
form field.
Doing this:
var imdesc = "document.myform." + imagename1 + ".value"
yields a string var called imdesc with a value of
"document.myform.imagename1.value"
But I don't want that string, I want its object reference value.
There is something very basic here I'm overlooking... so the question is:
How do I convert the string to have it literally interpreted as the value of
the document.form + imagename1 argument ??
Many many thanks in advance,
Jim