• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

To know whether the content in another frame is loaded

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic