Custom JSP taglib lets you provide Ajax-based hyperlinks. This tag is similar to
our Ajax link and mimics link_to_remote call in Ruby on Rails.
Tag asynchronously requests your server side (JSP, servlet) described in href attribute and replaces the given area with the
response. For example:
<script language="JavaScript" src="cjajax.js"></script> <%@ taglib uri="taglib.tld" prefix="a" %> <div id="i1"></div> <a:LinkToRemote href="/cj/testLink.jsp" title="link" targetId="i1">Click here for update</a:LinkToRemote> Here hyperlink lets you update the area with DHTML id i1. In order to use this tag you have to describe an external JavaScript file cjajax.js on your page. Url used for the server side request could be calculated in some JavaScript function. It is described in the attribute urlFunction. See JavaScript link taglib also. An attribute targetId lets you provide a CSS/DHTML id for the area that will be updated. Tags are: LinkToRemote Body tag defines Ajax-based hyperlink. Tag's body describes an anchor for the link. Parameters are: 1) href Optional parameter. Describes an URL for your requests.
for downloading: Library: linktoremotetag.jar Description: taglib.tld JavaScript library: cjajax.js See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|