Vital Statistics CountiesEdit function onLoad - jcobban/Genealogy GitHub Wiki

Vital Statistics CountiesEdit function onLoad()

Up: CountiesEdit.js

Source: /Canada/CountiesEdit.js

function onLoad is called when the CountiesEdit page has been loaded from the server to activate the dynamic functionaity of the page.

this is a reference to the window.

element name/id action
Add Add click action addCounty.
CodeXXX set popup help division "HelpCode".
NameXXX set popup help division "HelpName". Add default change event action.
StartYearXXX set popup help division "HelpStartYear".
EndYearXXX set popup help division "HelpEndYear".
DeleteXXX set popup help division "HelpDelete". Add click action deleteCounty
EditTownshipsXXX set popup help division "HelpEditTownships". Add click action showTownships.
EditLocationXXX set popup help division "HelpEditLocation". Add click action editLocation.

In the above "XXX" represents the identifier code of the county within the state or province.

Next: function changeCode(ev)