Javascript getCounties - jcobban/Genealogy GitHub Wiki
Source: /jscripts/Ontario.js
The function getCounties
is called during initialization of a script to initialize a selection list of counties in the specified domain.
The selection list has an id="RegCounty"
and an optional initialization field which is normally <input type="hidden" id="RegCountyTxt">
It has one parameter, the string identifier of an administration Domain which is divided into Counties for administration of vital statistics registrations, possibly under a country-specific term.
Parameters:
name | contents |
---|---|
domain | string identifying an instance of Domain, for example 'CAON'. |
Note that this function obsoletes the function getCounties
which obtains information about the counties in the domain as an XML document.
This is typically represented by HTML which looks like the following:
<div class="row" id="CountyTownshipRow">
<div class="column1">
<label class="labelCol1" for="RegCounty">
Regist'n: County:
</label>
<select name="RegCounty" id="RegCounty" size="1"
class="black white left">
</select>
</div>
<div class="column2">
<label class="labelCol2" for="RegTownship">
Township:
</label>
<input name="RegTownship" id="RegTownship"
type="text" size="20" maxlength="40"
value="$REGTOWNSHIP"
class="black white left">
</div>