File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Help on Frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Help on Frames" Watch "Help on Frames" New topic
Author

Help on Frames

Ray Yung
Greenhorn

Joined: Jul 27, 2004
Posts: 6
Hi,

I have a page with frames. What I like to achieve:
1) able to update window status;
2) a mouse click on a button in Frame B results in setting
data in Frame A.

My page works in IE but not in FireFox. Will the expert
explain to me how I could achieve the same result in FireFox?

main.html


menu.html


content.html



TIA,
Ray
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
parent.window.status
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
looks like your code should update....probbaly not awake enough yet...

try this
parent.frameMenu.theForm.user.value = name;
Ray Yung
Greenhorn

Joined: Jul 27, 2004
Posts: 6
Eric,

Thanks for your suggestions. But they both are not working
properly in FireFox v1.0.3

According to FireFox JavaScript Console, it states
"Error: parent.frameMenu.theForm has no properties".

Thanks,
Ray
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
ahhh

it should be

parent.frames['frameMenu'].document.theForm.user.value = name;

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help on Frames