To know whether the content in another frame is loaded
sreeni san
Ranch Hand
Joined: Aug 14, 2001
Posts: 39
posted
0
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: 15357
6
posted
0
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: To know whether the content in another frame is loaded