summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/TActiveFileUploadAutoPostBackTest.php
blob: 816a899ef52058c9e6dbd5e655596776e03ba561 (plain)
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
<?php
/**
 * BActiveFileUploadTest.php
 * 
 * @author Bradley Booms <Bradley.Booms@nsighttel.com>
 * @version Creation Date: Aug 9, 2007
 */

/**
 * BActiveFileUploadTest.php class
 * 
 * 
 * 
 * Properties
 * -
 * 
 * @author Bradley Booms <Bradley.Booms@nsighttel.com>
 * @version Modified Date: Aug 9, 2007
 * 
 * Modifications:
 */
class TActiveFileUploadAutoPostBackTest extends TPage{
	public function onPreRender($param){
		parent::onPreRender($param);
		$this->button1->Attributes->onclick = "{$this->uploader->getCallbackJavascript()}; return false;";
	}
	
	public function uploadComplete($sender, $param){
		$this->label1->setText($sender->getFileName());
	}
}
?>