Javascript displayHelp - jcobban/Genealogy GitHub Wiki
function displayHelp()
Source: /jscripts/util.js
This function displays the help division associated with a particular element in the web page. The help division is identified in one of the following ways:
this.helpDivName
may be set to explicitly specify the value of theid=
attribute of the division to display.- if
this.name
is set then the division to display has theid=
attribute"Help" + this.name
. - if
this.id
is set then the division to display has theid=
attribute"Help" + this.id
. - if
this
has an attributefor=
, then it is a <label> tag and the division to display has theid=
attribute"Help" + this.getAttribute("for")
.
If this
has an attribute maxlength=
then a sentence is added to the help division documenting this limit.
If this
had a style with textTransform: capitalize
then a sentence is added to the help division documenting this characteristic.
If this.abbrTbl
is defined then it contains a table of abbreviations which are automatically expanded when they are entered into the element, so a table documenting those abbreviations and their expansions is added to the help division.
The division is positioned just below or just above element for which help is to be displayed and it is made visible.
Parameters:
name | contents |
---|---|
this | an input element represented by an instance of HTMLElement |
Next: function hideDialog(ev)