In an existing, tested and working program, I have a form entry that simplifies to...
and a button of...
One of the things the setAmplitude function does is calculate a p1s value and then does a...
form.fp1s.value = p1s ;
This seems to work fine. I wanted to add a new feature to the program by adding a new button of
An initial function for imProveX was...
function imProveX (form) { setAmplitude (this.form) ; } ;
This should be doing the same thing the other button does, except from within a new proc instead of a button click. Instaad, an error of ...
'fp1s' is null or not an object
gets returned.
What am I doing wrong?
The full code appears as