1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>jsUnit External Data Document loader</title>
6
<script language="JavaScript" type="text/javascript">
9
var callback = function () {
13
return window.frames.documentBuffer;
17
loadStatus = 'loading';
18
buffer().document.location.href = uri;
21
function loadComplete() {
22
top.xbDEBUG.dump('main-loader.html:loadComplete(): loadStatus = ' + loadStatus + ' href=' + buffer().document.location.href);
23
if (loadStatus == 'loading') {
24
loadStatus = 'complete';
26
callback = function () {
32
var scopeName = 'main_loader_' + (new Date()).getTime();
33
top[scopeName] = window;
34
top.xbDebugTraceFunction(scopeName, 'buffer');
35
top.xbDebugTraceFunction(scopeName, 'load');
36
top.xbDebugTraceFunction(scopeName, 'loadComplete');
43
<iframe name="documentBuffer" onload="loadComplete()"></iframe>