ILink
From FiFormsWiki
class iLink extends iInput
Creates a hyperlink in a form.
Contents |
[edit]
Properties
| $contents | The text of the link. |
| $itype | The type of link. If this is blank, a normal link is produced. If itype is "button", a button is produced. |
| $openIn | The name of the window to open in. The behaviour of _self, _parent, _top, and _blank options is emulated in javascript. If left blank, _self is assumed. |
Properties inherited from iInput: $caption $currentRec $dbField $error $errorMsg $formatStr $formatStrRO $otherTags $readOnly $section $value $valueToSave
[edit]
Method Detail
[edit]
Methods inherited from iInput
- checkRO
- drawInput
- getValueToSave
- hide
- iInput
- throwError
[edit]
iLink
Constructs a new iLink object
Syntax: iLink($dbField,$caption,$openIn,$windowOptions,$itype,$contents)
[edit]
Parameters
$dbField - URL to load.
$caption - Title above or beside link. Set this to a single space (' ') if you want a blank caption.
$openIn - Name of window to open in.
$windowOptions - Options for opening a new window using JavaScript window.open().
$itype - Link type. If this is set to button, outputs a button; otherwise, outputs a normal link.
$contents - The actual text of the link
[edit]
Returns
a new iLink object


