Greetings,
There are two frames, and one included JavaScript file.
The file contains:
- an object definition
- methods for that object
Frame 1 contains:
- the javascript file is included in this frame like so:
<script language="javascript" src="myfile.js"></script>
- the object is instantiated in Frame 1 like so:
var alex = new HumanBeing();
- all of my methods and attributes of HumanBeing are accessed in this frame as normal.
Frame 2:
- I want to use and manipulate the same object in this frame.
How can I do this? I thought parent.Frame1.alex would give me access to the object but it does not. I have tried many variations of that since, but cant get any og them to work.
Any ideas?
Thank you,
Jason
There are two frames, and one included JavaScript file.
The file contains:
- an object definition
- methods for that object
Frame 1 contains:
- the javascript file is included in this frame like so:
<script language="javascript" src="myfile.js"></script>
- the object is instantiated in Frame 1 like so:
var alex = new HumanBeing();
- all of my methods and attributes of HumanBeing are accessed in this frame as normal.
Frame 2:
- I want to use and manipulate the same object in this frame.
How can I do this? I thought parent.Frame1.alex would give me access to the object but it does not. I have tried many variations of that since, but cant get any og them to work.
Any ideas?
Thank you,
Jason