Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

DHTML replacement for the standard JavaScript alert window for client-side validation PHP versions 4 and 5

Author: Alexey Borzov <borz_off@cs.msu.su>
Author: Adam Daniel <adaniel1@eesus.jnj.com>
Author: Bertrand Mansion <bmansion@mamasam.com>
Author: Justin Patrin <papercrane@gmail.com>
Author: Mark Wiesemann <wiesemann@php.net>
Copyright: 2005-2006 The PHP Group
License: http://www.php.net/license/3_01.txt PHP License 3.01
Version: CVS: $Id$
File Size: 203 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTML_QuickForm_DHTMLRulesTableless:: (3 methods):
  getValidationScript()
  qf_errorHandler()
  validate_()


Class: HTML_QuickForm_DHTMLRulesTableless  - X-Ref

This is a DHTML replacement for the standard JavaScript alert window for
client-side validation of forms built with HTML_QuickForm

getValidationScript()   X-Ref
Returns the client side validation script

The code here was copied from HTML_QuickForm and slightly modified to run rules per-element

return: string    Javascript to perform validation, empty string if no 'client' rules were added

qf_errorHandler(element, _qfMsg)   X-Ref
No description

validate_(var value = \'\';var errFlag = new Array()   X-Ref
No description