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 manipulating 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 "manipulating frames" Watch "manipulating frames" New topic
Author

manipulating frames

naveen rajan
Greenhorn

Joined: Jul 31, 2001
Posts: 5
on click of a link in one frame how do i change the contents the same frame and a different frame at one time.
Brian Glodde
Ranch Hand

Joined: Jun 27, 2001
Posts: 171
You could use javascript to load both frames:
<script language="JavaScript" type="text/javascript">
function load(url1, url2)
{
top.frames['frame1name'].location.href=url1;
top.frames['frame2name'].location.href=url2;
}
</script>
Then call it like this:
<a href="javascript:void(0);" onclick="load('somepage.htm','someotherpage.htm');">do now</a>
Frames can also be referred to ordinally.
Hopefully that will help to solve the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: manipulating frames
 
Similar Threads
Frames in HTML
How to show Modelless Frame
How to get parent frame of a JMenuItem (or its ActionListener)
How to use AWT's Frame()???
How to access nested frames with the frame name or id ?