/usr/share/php/xajax/tests/suite/theFrame.php 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <?php
/*
File: theFrame.php
Test script that runs in an iframe and communicates with the parent frame.
*/
require('../../xajax_core/xajax.inc.php');
$xajax = new xajax();
$xajax->configure('requestURI', basename(__FILE__));
$xajax->configure('javascript URI', '../../');
class clsFunctions {
function clsFunctions() {
}
function confirm($seconds) {
sleep($seconds);
$objResponse = new xajaxResponse();
$objResponse->append('outputDIV', 'innerHTML', '<br />confirmation from theFrame.php call');
return $objResponse;
}
}
$xajax->register(XAJAX_CALLABLE_OBJECT, new clsFunctions());
$xajax->processRequest();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>xajax Test iFrame</title>
<?php $xajax->printJavascript(); ?>
</head>
<body>
<div>This is the iframe</div>
<div id='outputDIV'></div>
</body>
</html>
|