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 To know whether the content in another frame is loaded 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 "To know whether the content in another frame is loaded" Watch "To know whether the content in another frame is loaded" New topic
Author

To know whether the content in another frame is loaded

sreeni san
Ranch Hand

Joined: Aug 14, 2001
Posts: 39
Hi,

I have two frames in a html page.

The second (bottom) frame has a toolbar.html with "next' and "back" links (a href). On click of the "next or back" links, a javascript function is called and a servlet call is made and the respective page(some html) is displayed in the first(upper) frame.

I need to disable the next or previous links once they are clicked untill the respective page gets loaded in the first (upper frame). How do I do this?

Is there a method to know whether the first(upper) frame is loaded completely with the page, in the javascript of the toolbar.html, which can work in all browsers? or please suggest me a suitable solution.

Thanks,
Sreeni.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can put an onload handler on the pages that are loading. When they are loaded, you can have that handler call the oither frame and say it is there.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To know whether the content in another frame is loaded
 
Similar Threads
"print this page" link (for frames pages)
iframe source getting overridden
Calling function from a separate HTML file
Sequence of Events
Applet