[thelist] Problem accessing for values with []

Jonathan Dillon jdillon at boehm-ritter.com
Thu Feb 10 16:53:11 CST 2005


Howdy all:

Thanks for the help with the cert. ;-)

I'm on to my second odd problem!  I've got a javascript file that needs to
make reference to the following form:
document.myform.form[fieldname].value

But:
alert('val: ' + document.main.form[journal].value);

...reveals that this will not work.  How in the name of flying beans do I
access that value?  I can't change the value (ancient enteprise system), so
I'm kind of lost on this one.

Is there some way to escape it or something?

Thanks much!

Jonathan



More information about the thelist mailing list