NAME
HTML::AjaxTags - AjaxTags implementation
SYNOPSIS
use HTML::AjaxTags;
DESCRIPTION
HTML::AjaxTags is a re-write of AjaxTags (http://ajaxtags.sourceforge.net/index.html) for perl. The original java classes have been replaced by perl methods.
The following documentation was taken directly from the AjaxTags web site. The only changes made are to accomidate for calling AjaxTags methods though perl instead of jsp tags.
PARAMETER DESCRIPTIONS
The following parameters can be used in multiple HTML::AjaxTags methods. The avilabiliy and required use of each parameter will be listed under the description for the method itself.
* baseUrl
URL of server-side action or servlet that processes search and returns list of values used in autocomplete dropdown; expression language (EL) is supported for this field
* source
Text field where label of autocomplete selection will be populated; also the field in which the user types out the search string
* sourceClass
The CSS class name of the elements to which the callout will be attached
* target
Text field where value of autocomplete selection will be populated
* parameters
A comma-separated list of parameters to pass to the server-side action or servlet
* eventType
Specifies the event type to attach to the source field(s)
* postFunction
Function to execute after Ajax is finished, allowing for a chain of additional functions to execute
* emptyFunction
Function to execute if there is an empty response
* errorFunction
Function to execute if there is a server exception (non-200 HTTP response)
autoComplete(%params)
- Required Parameters
- * baseUrl
- * source
- * target
- * parameters
- * className
-
CSS class name to apply to the popup autocomplete dropdown
- Optional Parameters
- * progressStyle
-
Used to define a CSS style that places an icon in the input field
- * forceSelection
-
true/false indicator of whether entry is restricted to displayed choices
- * minimumCharacters
-
Minimum number of characters needed before autocomplete is executed
- * appendValue
-
Indicates whether the value should be appended to the target field or simply replaced [default=false]
- * appendSeparator
-
The separator to use for the target field when values are appended [default=space]. If appendValue is not set or is set to "false", this parameter has no effect.
The autocomplete tag allows one to retrieve a list of probable values from a backend servlet (or other server-side control) and display them in a dropdown beneath an HTML text input field. The user may then use the cursor and ENTER keys or the mouse to make a selection from that list of labels, which is then populated into the text field. This JSP tag also allows for a second field to be populated with the value or ID of the item in the dropdown.
callout(%params)
- Required Parameters
- * baseUrl
- * source OR sourceClass
- * parameters
- * classNamePrefix
-
CSS class name prefix to use for the callout's 'Box', 'Close', and 'Content' elements
- Optional Parameters
- * eventType
- * postFunction
- * emptyFunction
- * errorFunction
- * boxPosition
-
Position of callout relative to anchor (e.g., 'top-left', 'top-right' [default], 'bottom-left', or 'bottom-right')
- * useTitleBar
-
Indicated whether the title bar should be rendered. Defaults to false.
- * title
-
Title for callout's box header. If useTitleBar==false and no title is specified, then the value attribute of the returned XML will be used as the title.
- * timeout
-
Timeout setting for callout in milliseconds. No timeout will be used by default.
The 'callout' is an easy way to attach a callout or popup balloon to any HTML element supporting an onclick event. The style of this callout is fairly flexible, but generally has a header/title, a close link ('X'), and the content itself, of course.
htmlContent(%params)
The HTML content tag allows you to fill a region on the page (often a DIV tag) with any HTML content pulled from another webpage. The AJAX action may be activated by attaching it to an anchor link or form field.
This tag expects an HTML response instead of XML and the AJAX function will not parse it as XML; it will simply insert the content of the response as is.
portlet(%params)
- Required Parameters
- * baseUrl
- * source
- * target
- * title
-
Title for portlet header
- * classNamePrefix
-
CSS class name prefix to use for the portlet's 'Box', 'Tools', 'Refresh', 'Size', 'Close', 'Title', and 'Content' elements
- Optional Parameters
- * parameters
- * postFunction
- * emptyFunction
- * errorFunction
- * imageClose
-
Image used for the close icon
- * imageMaximize
-
Image used for the maximize icon
- * imageMinimize
-
Image used for the minimize icon
- * imageRefresh
-
Image used for the refresh icon
- * refreshPeriod
-
The time (in seconds) the portlet waits before automatically refreshing its content. If no period is specified, the portlet will not refresh itself automatically, but must be commanded to do so by clicking the refresh image/link (if one is defined). Lastly, the refresh will not occur until after the first time the content is loaded, so if executeOnLoad is set to false, the refresh will not begin until you manually refresh the first time.
- * executeOnLoad
-
Indicates whether the portlet's content should be retrieved when the page loads [default=true]
- * expireDays
-
Number of days cookie should persist
- * expireHours
-
Number of hours cookie should persist
- * expireMinutes
-
Number of minutes cookie should persist
The portlet tag simulates a JSR-168 style portlet by allowing you to define a portion of the page that pulls content from another location using Ajax with or without a periodic refresh.
This tag expects an HTML response instead of XML and the AJAX function will not parse it as XML; it will simply insert the content of the response as is.
select(%params)
The select tag allows one to retrieve a list of values from a backend servlet (or other server-side control) and display them in another HTML select box.
tabPanel(%params)
- Required Parameters
- * panelStyleId
- * contentStyleId
- * currentStyleId
- * tab
-
Tab is an array reference of hash references. Each hash reference describes a single tab in the tabPanel. Each hash reference must include:
* baseUrl
* caption
The caption for this tab
Optional aruments include:
parameters
defaultTab
Indicates whether this tab is the initial one loaded [true|false]
- Optional Parameters
- * postFunction
- * emptyFunction
- * errorFunction
Provides a tabbed page view of content from different resources.
toggle(%params)
- Required Parameters
- * baseUrl
- * image
-
Image tag ID that will be toggled on/off
- * state
-
ID of hidden form field used to hold the current state
- * stateXmlName
-
Name of the XML property specifying the state in the returning XML
- * imagePattern
-
URL pattern of images used to indicate different status
- Optional Parameters
- * parameters
- * eventType
- * postFunction
- * emptyFunction
- * errorFunction
The toggle tag will change the value of a hidden form field between true and false, toggle an image between two source files, and replace the inner HTML content of another tag (div, span, etc).
updateField(%params)
Builds the JavaScript required to update one or more form fields based on the value of another single field.
AUTHOR
Kevin McGrath, kmcgrath@baknet.com
SEE ALSO
perl(1)
85 POD Errors
The following errors were encountered while parsing the POD:
- Around line 20:
You can't have =items (as at line 24) unless the first thing after the =over is an =item
- Around line 128:
Expected text after =item, not a bullet
- Around line 130:
Expected text after =item, not a bullet
- Around line 132:
Expected text after =item, not a bullet
- Around line 134:
Expected text after =item, not a bullet
- Around line 136:
Expected text after =item, not a bullet
- Around line 146:
Expected text after =item, not a bullet
- Around line 154:
Expected text after =item, not a bullet
- Around line 162:
Expected text after =item, not a bullet
- Around line 170:
Expected text after =item, not a bullet
- Around line 178:
Expected text after =item, not a bullet
- Around line 250:
Expected text after =item, not a bullet
- Around line 252:
Expected text after =item, not a bullet
- Around line 254:
Expected text after =item, not a bullet
- Around line 256:
Expected text after =item, not a bullet
- Around line 266:
Expected text after =item, not a bullet
- Around line 268:
Expected text after =item, not a bullet
- Around line 270:
Expected text after =item, not a bullet
- Around line 272:
Expected text after =item, not a bullet
- Around line 274:
Expected text after =item, not a bullet
- Around line 282:
Expected text after =item, not a bullet
- Around line 290:
Expected text after =item, not a bullet
- Around line 298:
Expected text after =item, not a bullet
- Around line 378:
Expected text after =item, not a bullet
- Around line 380:
Expected text after =item, not a bullet
- Around line 382:
Expected text after =item, not a bullet
- Around line 384:
Expected text after =item, not a bullet
- Around line 389:
Expected text after =item, not a bullet
- Around line 391:
Expected text after =item, not a bullet
- Around line 393:
Expected text after =item, not a bullet
- Around line 395:
Expected text after =item, not a bullet
- Around line 397:
Expected text after =item, not a bullet
- Around line 463:
Expected text after =item, not a bullet
- Around line 465:
Expected text after =item, not a bullet
- Around line 467:
Expected text after =item, not a bullet
- Around line 469:
Expected text after =item, not a bullet
- Around line 477:
Expected text after =item, not a bullet
- Around line 487:
Expected text after =item, not a bullet
- Around line 489:
Expected text after =item, not a bullet
- Around line 491:
Expected text after =item, not a bullet
- Around line 493:
Expected text after =item, not a bullet
- Around line 495:
Expected text after =item, not a bullet
- Around line 503:
Expected text after =item, not a bullet
- Around line 511:
Expected text after =item, not a bullet
- Around line 519:
Expected text after =item, not a bullet
- Around line 527:
Expected text after =item, not a bullet
- Around line 535:
Expected text after =item, not a bullet
- Around line 543:
Expected text after =item, not a bullet
- Around line 551:
Expected text after =item, not a bullet
- Around line 559:
Expected text after =item, not a bullet
- Around line 647:
Expected text after =item, not a bullet
- Around line 649:
Expected text after =item, not a bullet
- Around line 651:
Expected text after =item, not a bullet
- Around line 653:
Expected text after =item, not a bullet
- Around line 658:
Expected text after =item, not a bullet
- Around line 660:
Expected text after =item, not a bullet
- Around line 662:
Expected text after =item, not a bullet
- Around line 664:
Expected text after =item, not a bullet
- Around line 721:
Expected text after =item, not a bullet
- Around line 723:
Expected text after =item, not a bullet
- Around line 725:
Expected text after =item, not a bullet
- Around line 727:
Expected text after =item, not a bullet
- Around line 729:
You can't have =items (as at line 733) unless the first thing after the =over is an =item
- Around line 763:
Expected text after =item, not a bullet
- Around line 765:
Expected text after =item, not a bullet
- Around line 767:
Expected text after =item, not a bullet
- Around line 853:
Expected text after =item, not a bullet
- Around line 855:
Expected text after =item, not a bullet
- Around line 863:
Expected text after =item, not a bullet
- Around line 871:
Expected text after =item, not a bullet
- Around line 879:
Expected text after =item, not a bullet
- Around line 889:
Expected text after =item, not a bullet
- Around line 891:
Expected text after =item, not a bullet
- Around line 893:
Expected text after =item, not a bullet
- Around line 895:
Expected text after =item, not a bullet
- Around line 897:
Expected text after =item, not a bullet
- Around line 955:
Expected text after =item, not a bullet
- Around line 957:
Expected text after =item, not a bullet
- Around line 959:
Expected text after =item, not a bullet
- Around line 961:
Expected text after =item, not a bullet
- Around line 963:
Expected text after =item, not a bullet
- Around line 973:
Expected text after =item, not a bullet
- Around line 975:
Expected text after =item, not a bullet
- Around line 977:
Expected text after =item, not a bullet
- Around line 979:
Expected text after =item, not a bullet