Index | OAT homepage | OpenLink Software

OATDOCanchor

anchor.js

Enhanced Anchor tag.

Functions

OAT.Anchor.assign(anchor, options)

Modifies anchor element so it acts like Enhanced Anchor: when activated, it displays some additional data in lookup bubble. The lookup bubble is an instance of OAT.Winobject - so it can be styled the same way: use predefined OAT.Win styles or use its own via template. Options are the following:

OAT.Anchor.close(element, recursive)


Closes selected a++ window. The main point of this method is that it can be called from anywhere, so we do not have to use the close button of the window itself.

Example

var options = {
        title:"Title text",
        content:OAT.Dom.text("Content text"),
        status:"Status text",
        result_control:false,
        activation: "hover",
        type:OAT.WinData.TYPE_MAC
}
OAT.Anchor.assign("elementID", options);


Copyright (C) 2005-2008 OpenLink Software