Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on Frames

 
Ray Yung
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
parent.window.status
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
looks like your code should update....probbaly not awake enough yet...

try this
parent.frameMenu.theForm.user.value = name;
 
Ray Yung
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ahhh

it should be

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

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic