[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 /** 3 * Horde_Form_Action_reload is a Horde_Form Action that reloads the 4 * form with the current (not the original) value after the form element 5 * that the action is attached to is modified. 6 * 7 * $Horde: framework/Form/Form/Action/reload.php,v 1.7.10.4 2006/01/01 21:28:17 jan Exp $ 8 * 9 * Copyright 2003-2006 Jan Schneider <jan@horde.org> 10 * 11 * See the enclosed file COPYING for license information (LGPL). If you 12 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. 13 * 14 * @author Jan Schneider <jan@horde.org> 15 * @package Horde_Form 16 */ 17 class Horde_Form_Action_reload extends Horde_Form_Action { 18 19 var $_trigger = array('onchange'); 20 21 function getActionScript($form, $renderer, $varname) 22 { 23 return 'if (this.value) { document.' . $form->getName() . '.formname.value=\'\';' . 24 'document.' . $form->getName() . '.submit() }'; 25 } 26 27 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |