W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

Re: frame DOM ?

From: Michael Leventhal <mle@citec.fi>
Date: Mon, 16 Aug 1999 11:27:16 +0300
Message-Id: <3.0.5.32.19990816112716.0096c100@citec.fi>
To: www-dom@w3.org
At 05:46 PM 8/15/99 -0400, Luke McFadden wrote:
>I have 2 frames.  One is called "side" the other is called "main".  What
>i have is this:  In main.  There is a form text box.  And in side there
>are links.  I want it to put text into the text box in "main" when i
>mouseover the links in "side"
>
>I normally do it like this when it is single frame.
>onclick="window.document.forms[0].elements[1].value='text';"
>
>But i want it to go in the other frame.  How would i do this?
>
>Thanks for your time

This isn't a DOM question.  You have a DOM document in one frame.
You have a DOM document in the other.  How you communicate some
information from the one to the other is an environment issue, in
this case, the environment of a browser supporting the concept
of frames.

You need to study up on the frames array (frames[].document).
Check any JavaScript book.

Good luck,

Michael Leventhal


Michael Leventhal                     mle@citec.fi
Architecture/Development              +358 6 324 0738
CiTEC Information Technology          +358 50 537 6091 (GSM)
Received on Monday, 16 August 1999 04:34:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT