February 15th, 2000, 06:28 PM
i would like to pass a value to a function in another frame, and thought that this could be accomplished by
but that doesn't work, can anyone tell me how i can do this?
February 21st, 2000, 08:18 PM
Not enough information (what is the function supposed to do?) But try to pass the focus to the frame. That is:
February 26th, 2000, 06:51 AM
The fact is that a function has its own execution context. This means that the function will look for the variable in it's own frame. Of course it will not find it there. Therefore the way to do it is:
If you have any questions about this feel free to e-mail me.
Boradoli Web Design
April 3rd, 2000, 12:57 PM
I like keeping functions in one frame as if it were a library. I just declare the variable `var variableName...` and that makes them global, so I haven't had to use the frame-path. The function does execute in the environment of the frame it is in, NOT the frame that calls it, so it's often useful to pass other objects to the function, such as forms. That way you can still manipulate things in the calling frame.