Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes Reload other frame when window is resized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reload other frame when window is resized" Watch "Reload other frame when window is resized" New topic
Author

Reload other frame when window is resized

sreeni san
Ranch Hand

Joined: Aug 14, 2001
Posts: 39
I have two frames, one with frame1 and frame2. When the window is resized the two frames are getting reloaded in Netscape, but the frame2 has buttons which I am not able to click.
If I reload frame2 seperately then the frame is becoming active and I am able to navigate.
I tried with these
<body onresize="parent.frame2.reload()">
also tried with window.location.reload().
Anyone please let me know how to reload frame2 when window is resized.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
put the reload code in the <framset> tag
onresize="parent.FrameName.reload()"
if that does not work then try this
onresize="parent.FrameName.document.location.href=parent.FrameName.document.location.href"
Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reload other frame when window is resized
 
Similar Threads
Error Data Misssing
Two html frames can share a javascript custom object or not?
paintComponent in JDesktopPane gives unexpected results when dragging
Data Misssing
inter frame communication