parent construction don't work

RESOLVED WORKSFORME

Status

()

Core
DOM: Core & HTML
RESOLVED WORKSFORME
15 years ago
14 years ago

People

(Reporter: Murphy, Unassigned)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030324 Phoenix/0.5
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4a) Gecko/20030324 Phoenix/0.5

I cannot get into window parent's parent properties & method, construction
parent.parent doesn't work in Mozilla, but works in Opera 7.0 and IE 5.5. I use
two frame HTML files with contents like 

First file : 
...
<frameset ...>
<frame name=leftframe ... src=leftframe>
<frame name=rightframe ... src=rightframe>
</frameset>
...

And rightframe file something like this :

...
<frameset ...>
<frame name=top ... src=top>
<frame name=middle ... src=middle>
<frame name=bottom ... src=bottom>
</frameset>
...

In middle frame I have form and I need to submit this form onClick button in
bottom frame. I used construction parent.middle.form_name.submit(), it doesn't
work nor in Opera, so I changed it to
parent.parent.right.middle.form_name.submit(), this works, but only in Opera,
not in Mozilla.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
> parent.parent.right.middle.form_name.submit()

"right"?  Or "rightframe"?

In any case, this is totally the wrong component.  The JS engine has no concept
of windows, frames, HTML, etc.
Assignee: rogerl → dom_bugs
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → ashishbhatt
Is this still an issue?  If so, please attach an HTML testcase showing it....

Comment 3

14 years ago
Reporter, we have not heard from you for a very long time. If the problem still
exists in/with a recent build, then include a testcase (preferably) or an url in
a comment so that we can confirm the issue you see. Right now, there is very
little to go on.

Resolving as WORKSFORME
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.