Topic awaiting preservation: Sending form field to js function |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 02-25-2002 17:40
Greets! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 02-25-2002 19:02
You're passing string parameter as myValue, and therefore designWindow.myValue.value won't be designWindow.height.value as expected, since it's basically designWindow.'height'.value and that's invalid (string doesn't represent property). You have two options, use eval() to assemble appropriate line of code, or modify your function to look something like this: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 02-25-2002 19:10
One needn't use eval() to make a string represent a property. You only need to use the [] operator, like this: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 02-25-2002 19:19
Doh, I completely forgot about that... It ain't easy knowing syntax of all those language in your head in each moment, heh... |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 02-25-2002 20:46 |