Location: PHPKode > projects > PHP OpenTailorShop > phpopentailorshop/xajax/tests/suite/theFrame.php
		File: theFrame.php
		Test script that runs in an iframe and communicates with the parent frame.

	$xajax = new xajax();
	$xajax->configure('requestURI', basename(__FILE__));
	$xajax->configure('javascript URI', '../../');

	class clsFunctions {
		function clsFunctions() {
		function confirm($seconds) {
			$objResponse = new xajaxResponse();
			$objResponse->append('outputDIV', 'innerHTML', '<br />confirmation from theFrame.php call');
			return $objResponse;
	$xajax->register(XAJAX_CALLABLE_OBJECT, new clsFunctions());

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
		<title>xajax Test iFrame</title>
		<?php $xajax->printJavascript(); ?>
		<div>This is the iframe</div>
		<div id='outputDIV'></div>
Return current item: PHP OpenTailorShop