Form
Form class is used for control and management of edit form and list form. This class always uses as Form such as "Form.height = 100;". In order to examine whether the script was called from edit form, you use isCardForm().
left
Gets or sets the position at the left of the form. This value is ignored at list form.
top
Gets or sets the position at the top of the form. This value is ignored at list form.
width
Gets or sets the width of the form. This value is ignored at list form.
height
Gets or sets the height of the form. This value is ignored at list form.
bgcolor
Gets or sets the background color of the form. This value is ignored at list form.
// ex:
Form.bgcolor = "red";
Form.bgcolor = "#DDDDDD";
attachEvent(funcname, func)
Connects a form event with a function.
Event name | Example | Description |
gotfocus | func() | Occurs when the form becomes active. |
lostfocus | func() | Occurs when the form becomes non-active. |
sizechanged | func() | Occurs when the size of the form is changed. |
readcard | func(no) | Occurs when a card is read. The target card number is contained in "no". |
writecard | func(no) | Occurs before a card is written in. The target card number is contained in "no". If a return value is set to false at this time, a write-in process will be canceled. |
deletecard | func(no) | Occurs before a card is deleted. The target card number is contained in "no". If a return value is set to false at this time, a deletion process will be canceled. |