[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
Javascript to add events to form elements $Horde: horde/js/form_helpers.js,v 1.3.4.6 2006/03/24 05:17:59 chuck Exp $
Poids: | 176 lignes (5 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
addEvent(element, event, code) X-Ref |
Adds the given event to an element. If the element already has script for the event, the new event is appended. param: object element The element to add the event to. param: string event The name of the event. param: string|function function The javascript to execute. |
toNumber(val) X-Ref |
Returns given value as a number, or zero if NaN. param: mixed val return: number |
checkEnabled() X-Ref |
Sets the enabled state of one element based on the values of another. Takes four or more arguments, in the form: checkEnabled(source, target, true, value1, value2, value3...) param: object The element to check param: string The element to enable/disable param: boolean Whether to enable or disable the target param: mixed The value to check against |
sumFields() X-Ref |
Sets the target field to the sum of a range of fields. Takes three or more arguments, in the form: sumFields(form, target, field1, field2, field3...) param: object The form to check param: string The name of the target element param: string One or more field names to sum |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |