Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To know whether the content in another frame is loaded

 
sreeni san
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic