![]() Topic awaiting preservation: Sending form field to js function (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
![]() Greets! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() 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 |
![]() 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 |
![]() |