Script.pm


NAME

Communiware::DE::Script - Dynamic element Script


SYNOPSIS

   <:Script name text [[fieldlist] class]:>


DESCRIPTION

This dynamic element generates link to Communiware script. Scripts differ from items several ways. Particulary, they don't know beforehand to which server they belong, so server name should be passed as parameter. Often, scripts also require url of refering page to be able to return user there when desired action is completed. Dynamic elemet script handles all this features.

Since introduction of new form handling system in version 0.8, this dynamic element is considered obsolete.

Scripts directory may be eliminated entirely in future versions of Communiware.


ARGUMENTS

name
Name of the script. Note that this name is used as index into local hash of scripts.

text
Text of the link Attribute substitution is performed.

fieldlist
List of additional arguments, which should be passed to the script in URL-encoded form. If list is empty, only argument ITEM_ID is passed (besides SERVER and REFERER) with value of current ITEM_ID. If list is non-empty, it should be comma-separated list of either attribute names from current context (don't forget to include ITEM_ID, if script expects it) or pairs ARG=value). If comma, double quote or space should occur inside value, it must be escaped using %hexcode syntax.

class
If non-empty, used as additional attributes for A tag. Should be comma-separated list of pairs name=value. If doesn't contain equial sign is interpreted as value of class attribute.

16 октябрь 2007 13:44