• last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Allow to identify and set handlers also on form fields by form id and field name (confirm and generic ones).

This could be desirable in pages with multiple ad_forms having fields with the same name (and thus no unique id), or other hand made forms not having id field at all.

Update documentation so best practice is suggested

Some more Tcl cleanup

- use curly brackes to enable byte code compilation

- don't use "[expr ...]" when not needed

- prefer "incr i -1" over "set i [expr {$i - 1}] "

  1. … 11 more files in changeset.
- improve documentation

- add log entry, when listener is automatically registered

- white space changes

- automatically convert on* event registrations passed to formtemplate into event listener

- improve comments

- remove unneeded expr statements

  1. … 5 more files in changeset.
- be silent, when specified element does not exist

- use for hex codes 2-digit notation \xHH to make it compatible for tcl8.6

  1. … 5 more files in changeset.
- replace onclick event listener by evenet listeners

- fix test for strange validation error

- use ad_log instead of ns_log for warning in such cases

Introduced missing ad_library statement. Normalized overall library description.

  1. … 7 more files in changeset.
Introduced missing ad_library statement

Introduced missing ad_library statement at the beginning of file

- new conveniance function "template::add_event_listener"

- improve documentation on "template::add_confirm_handler"

- remove onclick and onkeypress inline scripts in list-procs

- bump version number to 5.9.1d7

  1. … 1 more file in changeset.
- renamve template::add_acs_confirm_handler into template::add_confirm_handler

  1. … 9 more files in changeset.
- generalize template::add_acs_confirm_handler to allow as well other event types, such as e.g. "submit"

  1. … 1 more file in changeset.
-Quoted sqared parenthesis in javascript giving problems to subst.

-Removed unnecessary call again to template::add_body_script

- added new function template::add_acs_confirm_handler for standardized confirm interactions ("are you sure") in order to get rid of onclick handlers

- bump version numbers to reflect dependencies

  1. … 1 more file in changeset.
- adding nonce values to script tags

  1. … 9 more files in changeset.
- add fallback for non CSP 2 compliant browsers for "head::add_script -script ..."

Removed dangerous catch idiom

Removed leftover count_query argument from template::paginator::create

- template::head::add_style: don't add identical entries multiple times

- avoid event bubbling for click listener

- add nonce to inline javascript

- make unsafe-inline optional in CSP for legacy browsers: add automatically "script-src 'unsafe-inline'" when scripted body_scripts are used

- add CSP nonce to script tags if nonce value is available

- turn function definition of acs_Focus() into a conditionally defined

body-script

- turn "body_event_handlers" into "window.addEventListener"

  1. … 4 more files in changeset.