[pmwiki-users] Popup messages

Dominique Faure dominique.faure at gmail.com
Mon Oct 30 04:56:02 CST 2006


On 10/30/06, IchBin <weconsul at ptd.net> wrote:
> [...]
>
> - Can the DomTT recipe enable me to do any of the functionality of the
> DomTT product?

The recipe by itself is only a gateway to the DomTT javascript code.
As documented:

The popup markup general syntax is:

[:DIV_IDENTIFIER OPTIONS: LINK_TEXT]

with:

DIV_IDENTIFIER
An HTML/Javascript compliant identifier refering to the division block
to use as popup window content, i.e. any combination of letters,
digits, dashes and underscores.

OPTIONS
Miscellaneous parameters handled by the domTT script itself and
described in the distribution at /pub/domTT/HOWTO.html. Parameters are
set as param='value', boolean ones as +param (true) or -param (false).

LINK_TEXT
Any text that can be used in a link.
As an example, the following markup [:tip1 +trail grid=10:Tip1]
will show the div named as 'tip1' as a popup trailing the mouse in
every direction on a 10 pixel grid.

> - Is their anyway I could organize all of the DIV targets outside of a
> particular page. It is cumbersome to have both the calling and called
> targets in the same page. Would be nice to have a repository or class
> that could manage these string literals. It also slows down the page
> when loading and saving.

Since all the tooltip rendering is done by the browser itself, you
have to provide all the required data in the same page, thus the wiki
page only has to (:include:) another page(s) containing your divs
popup definitions to have it available.

Dom




More information about the pmwiki-users mailing list