JHeartbeat Script using jQuery Plugin

JHeartbeat Script using jQuery Plugin

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
504 views

JHeartbeat is a plugin for JQuery 1.0.1 that allows a web page to periodically poll the server. This polling can be used to keep the user’s session alive or to download updated information.

To use JHeartbeat, add the following to the HEAD section of your website.

<script type="text/javascript" src="heartbeat.js"></script>

Next, initialize the JTicker plugin by adding the following code:

$(document).ready(function() {
		$.jheartbeat.set({
			url: "heartbeat.asp",
			delay: 3000
		}, function () {
			// Callback Function
		});
	});

The options (Bolded) are recommended. You can omit either of them, but then defaults will be used. The callback function (Italics) is optional. When the JHeartbeat object is set, a hidden div with the id of HeartBeatDIV is created. The contents of the “heartbeat” page will be loaded into this div. You can use the callback function to manipulate this data if need be. A sample “heartbeat” page is included in the Zip file.

Download: http://www.jasons-toolbox.com/JHeartbeat/heartbeat_wJQuery.zip
Source: http://www.jasons-toolbox.com/JHeartbeat/

http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/delicious_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/blinklist_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/furl_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/technorati_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/magnolia_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/google_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/myspace_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/facebook_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/sphinn_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/mixx_32.png http://www.ajaxupdates.com/wp-content/plugins/sociofluid/images/twitter_32.png

Related Listings:

  1. Slightly ThickerBox Script Slightly ThickerBox is a modification of Cody Lindley’s Thickbox script....
  2. jTruncate : jQuery Plugin This is the demonstration page for the jTruncate plugin for...
  3. Autosave – Flexible Jquery Plugin Autosave is a flexible autosave plugin for jQuery. If yo...
  4. Hwy jQuery ListMenu Plugin This jQuery plugin, developed in the iHwy Labs, allows you...
  5. UITableFilter – jQuery Plugin A simple and easy to use jQuery plugin for filtering...

Do you like this post?

Email:     

Tags: , , , , , , , , , ,

1 Comment »

  1. avatar comment-top

    [...] Read more here: JHeartbeat Script using jQuery Plugin [...]

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment



Web Design & CSS (Templates) - TOP.ORG