Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is 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