Basic HTML version of Foils prepared July 9 99

Foil 69 onUnload onLoad Events

From Distance Education: How to do it DoD HPC Modernization Users Group Tutorial Monterey California, ACM Java Grande San Francisco, EDMEDIA Seattle -- June 7 99, June 14 99, June 20 99. by Geoffrey C. Fox


With <body onload="signifyload()" > signifyload is called when page is fully loaded and DOM fully constructed
  • For general pages use if(WW_isdefined(document.forms)) and count number of forms, images, links, layers. When count stabilizes, page is loaded
  • WebWisdom pages all have an onload event handler which inter alia registers with JSSB
for unloading, one can either
  • a) set onunload handler of general pages after they are loaded and make this handler signify (detected immediately)
  • b) set framewindow.WW_dynamicvariable = 1 (say) and then page is unloaded after one finds this variable undefined (detected in loop every .5 second)
These heuristics are used to estimate total load time of each page and report this to user or session master
  • Thus one can produce quite a detailed network and client environment status display for teacher (network administrator)



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Fri Jul 9 1999