ILink

From FiFormsWiki

Jump to: navigation, search

class iLink extends iInput

Creates a hyperlink in a form.


Contents

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

Method Detail

Methods inherited from iInput

  • checkRO
  • drawInput
  • getValueToSave
  • hide
  • iInput
  • throwError


iLink

Constructs a new iLink object

Syntax: iLink($dbField,$caption,$openIn,$windowOptions,$itype,$contents)

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

Returns

a new iLink object

Personal tools