How do I allow separate frames to access code between each other?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Chong
    New Member
    • Mar 2011
    • 1

    How do I allow separate frames to access code between each other?

    First post!

    So I've been trying to figure out how the heck I'm gonna do this. It's been driving me up the wall this past week so I figure this website would maybe be of some help. I'm new to using JavaScript (programming languages as a whole actually) and thought I should join a community where I can maybe learn a few things :]

    Basically what I need to do is utilize frames and windows to be able to make a webpage with this format:



    TOP FRAME

    LEFT FRAME
    • List of Items with Check Box next to them


    RIGHT FRAME
    • Updatable Cart Interface with the Total of all Items at the Bottom


    ------------------------------------------------------------------------------------------------------------------------------

    Anyways, what I did was write the code out as if it were all in one frame and copied and pasted it into to the respective frames (<body> section in the left frame, and <script> + <head> sections on the right frame).

    However, this got me nowhere since the code needs to be able to access each other between frames.

    So, my question is; how do you make these two frames accessible to each other? Is there a way to do it without completely changing my current code?


    Thank you
Working...