HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership/radphp/rpcl/xajax/tests/suite/iframe.js
try {
	if (undefined == iframe.code) {
		iframe.code = {}
	}
} catch (e) {
	iframe = {}
	iframe.code = {}
} finally {
	parent.iframe = iframe;
}

xajax.request( { xjxcls: 'clsfunctions', xjxmthd: 'confirm' }, { parameters: [2] } );

iframe.code.loaded = false;

// simulate a 4 second delay in loading the .js file for the iframe
setTimeout('iframe.code.loaded = true;', 4000);

iframe.code.unload = function() {
	iframe.code = {}
	iframe = {}
	parent.iframe = {}
	xajax.$('outputDIV').innerHTML += '<br />iframe.js being unloaded';
}

xajax.$('outputDIV').innerHTML += '<br />iframe.js loaded, sleeping for 4 seconds to simulate network delay';