Custom JSP taglib for your UI development.
This taglib lets you define a hyperlink that popups some window with
your own HTML/JSP code. Taglib is similar to our Popup taglib
but lets you define a content via Ajax request. For example:
<script language="JavaScript" src="cjajax.js"></script> <%@ taglib uri="taglib.tld" prefix="ap" %> What does
and you will get this picture: What does
Tag lets you request data from server side (attribute url) and display them in the popup window. Attribute urlFunction lets you define a JavaScript function that will construct URL for the request in dynamic. Attributes beforeAction and afterAction lets you provide your own JavaScript code that marks start/end phase of request.
For example you can show/hide here some loading image etc. So, you can describe in your HTML code some progress indicator:
<div style="display:none" id="loading"><img src="loading.gif"/></div> and define two JavaScript functions:
function beforeAction() { document.getElementById("loading").style.display="block"; } function afterAction() { document.getElementById("loading").style.display="none"; } it lets you show/hide progress indicator In order to use this tag you have to describe an external JavaScript file cjajax.js on your page. Tags are: apopup Body tag implements a popup window. Parameters are: 1) id Optional parameter.
Describes an id for this window (if you have more than one popup element
on your page). Default value is apopup.
for downloading: Library: apopuptag.jar Description: taglib.tld JavaScript library: cjajax.js See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|