ColdFusion custom tag: heartbeat 1.1

Download the tag

This tag implements the Heartbeat pattern for Ajax
The tag output JavaScript code that periodically perform an HTTP request to indicate the application is still loaded in the browser and the user is still active

Requires ColdFusion Server 6.1 or more

Copyright © 2006 Massimocorner.com
Developed 2006 Massimo Foti (massimo@massimocorner.com)

Attributes

url Optional. Address of the page on the server which will handle the request. Default to the current page
interval Optional. The interval among HTTP requests (minutes). Default to 5

Code samples

<cfimport taglib="CustomTags" prefix="tmt">

<tmt:heartbeat />

<tmt:heartbeat url="index.cfm" interval="1" />