/usr/share/php/xajax/tests/suite/iframe.js is in php-xajax 0.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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';
|