addedValueMacros.JSrender
Syntax
{addedValueMacros.JSrender((jsPartialAddress, flAddScriptTags=false, flOncePerPage=false)}
- jsPartialAddress - a partial address, within an internal table, of a javascipt entry table.
- flAddScriptTags (optional, default false) - true if the macro shoudl enlcose it output in script tags.
- flOncePerPage (optional, default false) - true if the macrto should ensure this code is rendered once per page.
Examples
| {addedValueMacros.JSrender("cliches.date")} |
Semantics
This is an internal macro used by addedValues to add javascript validation to forms. It access tables of javascript with an entry for each type of variable validated. The restriction as to what can be rendered is in the interests of maintaining security.