Intra FRAME Addressing

E

EBH

I would much appreciate if you could tell me what
I'm missing.

The project is to gather some info from existing web screens
for display in a new screen.
'Hidden' frames seem a good way to achieve this.
BUT I just cannot get the syntax to address the data
from one frame inside the other frame to work. I'm missing
something elementary.

FRAME1 of the FRAMESET contains:
<div id=Id>Some text</div>

FRAME2 attempts to get at this with JavaScript:

Onestext =
parent.window.frames[0].document.getElementById("Id").innerHTML;

Which results in the fatal message: p.w.f[0].d.g("id") HAS NO
PROPERTIES

Similar syntax from a frame to outer document works fine,
e.g. the statement:

parent.document.getElementById("AnId").----;

gets whatever I want from the outer document inside the frame.

I've been at this for three days with endless variations - I cannot
figure it out. I would grateful for some help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top